瀏覽代碼

提交代码

Lijy 5 月之前
父節點
當前提交
7c42eb5895
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      fhKeeper/formulahousekeeper/timesheet/src/App.vue

+ 4 - 0
fhKeeper/formulahousekeeper/timesheet/src/App.vue

@@ -33,6 +33,10 @@
 			}
 			}
 		},
 		},
         created() {
         created() {
+            const windowsUrl = location.href
+            if(windowsUrl.indexOf('style=new') > 0) {
+                localStorage.setItem('themes', 'dark')
+            }
             const themes = localStorage.getItem('themes') || 'default'
             const themes = localStorage.getItem('themes') || 'default'
             this.switchThemes(themes)
             this.switchThemes(themes)
         },
         },