remove unnecessary codes
This commit is contained in:
parent
579bcc3900
commit
0d29f112be
|
@ -182,12 +182,6 @@ export async function common(createVue: () => App<Element>) {
|
||||||
if (instance.defaultLightTheme != null) ColdDeviceStorage.set('lightTheme', JSON.parse(instance.defaultLightTheme));
|
if (instance.defaultLightTheme != null) ColdDeviceStorage.set('lightTheme', JSON.parse(instance.defaultLightTheme));
|
||||||
if (instance.defaultDarkTheme != null) ColdDeviceStorage.set('darkTheme', JSON.parse(instance.defaultDarkTheme));
|
if (instance.defaultDarkTheme != null) ColdDeviceStorage.set('darkTheme', JSON.parse(instance.defaultDarkTheme));
|
||||||
defaultStore.set('themeInitial', false);
|
defaultStore.set('themeInitial', false);
|
||||||
} else {
|
|
||||||
if (defaultStore.state.darkMode) {
|
|
||||||
applyTheme(darkTheme.value);
|
|
||||||
} else {
|
|
||||||
applyTheme(lightTheme.value);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue