From 107dace02cd1e3d0e74c5f3f5151113996c9a62d Mon Sep 17 00:00:00 2001 From: Kulbhushan Kaushik Date: Tue, 27 Sep 2022 15:14:56 -0400 Subject: [PATCH] commit --- src/store/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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