소스 검색

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()