diff --git a/src/store/index.js b/src/store/index.js index 631b009e..64b58369 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -98,7 +98,10 @@ export const useMainStore = defineStore({ }, populateInitialState() { - Object.assign(this.$state, getDefaultState()); + if(!localStorage.getItem('main')) { + this.$state = state; + } + } }, persist: true