|
|
|
@ -1,10 +1,5 @@
|
|
|
|
|
import createPersistedState from 'vuex-persistedstate' |
|
|
|
|
|
|
|
|
|
import SecureLS from 'secure-ls' |
|
|
|
|
import isDev from '../helpers/xutils' |
|
|
|
|
|
|
|
|
|
const ls = new SecureLS({ isCompression: false }) |
|
|
|
|
|
|
|
|
|
export default async({ store, $vuetify: { theme }, route }) => { |
|
|
|
|
/** |
|
|
|
|
* |
|
|
|
@ -39,6 +34,10 @@ export default async({ store, $vuetify: { theme }, route }) => {
|
|
|
|
|
if (route && route.query && 'embed' in route.query) { |
|
|
|
|
window.rehydrated = true |
|
|
|
|
} else { |
|
|
|
|
const createPersistedState = (await import('vuex-persistedstate')).default |
|
|
|
|
const SecureLS = (await import('secure-ls')).default |
|
|
|
|
const ls = new SecureLS({ isCompression: false }) |
|
|
|
|
|
|
|
|
|
createPersistedState({ |
|
|
|
|
fetchBeforeUse: true, |
|
|
|
|
async rehydrated(store) { |
|
|
|
|