瀏覽代碼

fix: reset data according to version

nian 2 月之前
父節點
當前提交
92f58ab884
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main.ts

+ 1 - 1
src/main.ts

@@ -16,7 +16,7 @@ function clearSystemData() {
   const userStore = useUserStore()
 
   const oldLocalStorage = localStorage.getItem('configure')
-  if (oldLocalStorage && haveSameKeys(preferencesStore.preferences, DEFAULT_PREFERENCES_OPTIONS)) {
+  if (oldLocalStorage || haveSameKeys(preferencesStore.preferences, DEFAULT_PREFERENCES_OPTIONS)) {
     tabsStore.clearTabs()
     preferencesStore.reset()
     userStore.cleanup()