diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-20 17:49:43 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-20 17:49:43 +0100 |
| commit | 3fd0d0d1cba11f469d8f00b9bf00bea0dfdf1494 (patch) | |
| tree | 71a171d1f4d45a4c2cdf1ec402ac6b4bb8a2db25 | |
| parent | fcb950fb43f40549d220da729120b93ad416b2d0 (diff) | |
Revert "Remove state persistence for now."
This reverts commit 9cf438f1b2d35b9282861128f2267d54d97d7588.
| -rw-r--r-- | src/main.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main.js b/src/main.js index fd03e519..841e61a7 100644 --- a/src/main.js +++ b/src/main.js @@ -17,7 +17,7 @@ import configModule from './modules/config.js' import VueTimeago from 'vue-timeago' -// import createPersistedState from 'vuex-persistedstate' +import createPersistedState from 'vuex-persistedstate' Vue.use(Vuex) Vue.use(VueRouter) @@ -28,9 +28,9 @@ Vue.use(VueTimeago, { } }) -// const persistedStateOptions = { -// paths: ['users.users', 'statuses.notifications'] -// } +const persistedStateOptions = { + paths: ['users.users', 'statuses.notifications'] +} const store = new Vuex.Store({ modules: { @@ -39,7 +39,7 @@ const store = new Vuex.Store({ api: apiModule, config: configModule }, - // plugins: [createPersistedState(persistedStateOptions)], + plugins: [createPersistedState(persistedStateOptions)], strict: process.env.NODE_ENV !== 'production' }) |
