Pārlūkot izejas kodu

perf: 优化代码

曾坤森 3 mēneši atpakaļ
vecāks
revīzija
fccaea826a
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      src/components/navbar/index.vue

+ 2 - 2
src/components/navbar/index.vue

@@ -243,10 +243,10 @@ const showCheckInDialog = shallowRef<boolean>(false);
 
 const isDark = useDark({
   selector: 'body',
-  attribute: 'arco-theme',
+  attribute: 'site-theme',
   valueDark: 'dark',
   valueLight: 'light',
-  storageKey: 'arco-theme',
+  storageKey: 'site-theme',
   onChanged(dark: boolean) {
     // overridden default behavior
     appStore.toggleTheme(dark);