|
@@ -1,7 +1,7 @@
|
|
import { DEFAULT_PREFERENCES_OPTIONS, usePreferencesStore } from '@/stores/preferences'
|
|
import { DEFAULT_PREFERENCES_OPTIONS, usePreferencesStore } from '@/stores/preferences'
|
|
import { useTabsStore } from '@/stores/tabs'
|
|
import { useTabsStore } from '@/stores/tabs'
|
|
import { useUserStore } from '@/stores/user'
|
|
import { useUserStore } from '@/stores/user'
|
|
-import { haveSameKeys,getAllKeys } from '@/utils/lodash-helpers'
|
|
|
|
|
|
+import { haveSameKeys } from '@/utils/lodash-helpers'
|
|
|
|
|
|
const preferencesStore = usePreferencesStore()
|
|
const preferencesStore = usePreferencesStore()
|
|
const tabsStore = useTabsStore()
|
|
const tabsStore = useTabsStore()
|
|
@@ -9,9 +9,6 @@ const userStore = useUserStore()
|
|
|
|
|
|
export function resetSystemData() {
|
|
export function resetSystemData() {
|
|
|
|
|
|
- console.log(getAllKeys(preferencesStore.preferences))
|
|
|
|
- console.log(getAllKeys(DEFAULT_PREFERENCES_OPTIONS))
|
|
|
|
-
|
|
|
|
const oldLocalStorage = localStorage.getItem('configure')
|
|
const oldLocalStorage = localStorage.getItem('configure')
|
|
if (oldLocalStorage || !haveSameKeys(preferencesStore.preferences, DEFAULT_PREFERENCES_OPTIONS)) {
|
|
if (oldLocalStorage || !haveSameKeys(preferencesStore.preferences, DEFAULT_PREFERENCES_OPTIONS)) {
|
|
tabsStore.clearTabs()
|
|
tabsStore.clearTabs()
|