enhance(frontend): migrate overridedDeviceKind to preference

This commit is contained in:
syuilo
2025-03-09 17:14:48 +09:00
parent 27e8805dcb
commit c9c04d8391
6 changed files with 12 additions and 7 deletions

View File

@@ -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 });