enhance(frontend): migrate overridedDeviceKind to preference
This commit is contained in:
parent
27e8805dcb
commit
c9c04d8391
6 changed files with 12 additions and 7 deletions
|
|
@ -202,7 +202,7 @@ export async function common(createVue: () => App<Element>) {
|
|||
if (prefer.s.darkTheme == null && instance.defaultDarkTheme != null) prefer.set('darkTheme', JSON.parse(instance.defaultDarkTheme));
|
||||
});
|
||||
|
||||
watch(store.reactiveState.overridedDeviceKind, (kind) => {
|
||||
watch(prefer.r.overridedDeviceKind, (kind) => {
|
||||
updateDeviceKind(kind);
|
||||
}, { immediate: true });
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue