Skip to content

Commit 0144a5c

Browse files
committed
added persistennt storage
1 parent a6a8af1 commit 0144a5c

File tree

3 files changed

+4202
-2986
lines changed

3 files changed

+4202
-2986
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"vuejs-datetimepicker": "^1.1.13",
6060
"vuetify": "2.0.0",
6161
"vuex": "^3.4.0",
62+
"vuex-persistedstate": "^4.1.0",
6263
"webpack": "^5.90.3"
6364
},
6465
"devDependencies": {

src/store/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import playgroundStore from './playgroundStore';
44
import mainStore from './mainStore';
55
import globalStore from './globalStore';
66
import walletStore from './walletStore'
7+
import createPersistedState from 'vuex-persistedstate';
78
Vue.use(Vuex)
89

910
export default new Vuex.Store({
@@ -12,6 +13,7 @@ export default new Vuex.Store({
1213
mainStore,
1314
globalStore,
1415
walletStore
15-
}
16+
},
17+
plugins: [createPersistedState()]
1618
})
1719

0 commit comments

Comments
 (0)