|
|
@ -5,7 +5,7 @@ import isDev from '../helpers/xutils' |
|
|
|
|
|
|
|
|
|
|
|
const ls = new SecureLS({ isCompression: false }) |
|
|
|
const ls = new SecureLS({ isCompression: false }) |
|
|
|
|
|
|
|
|
|
|
|
export default async({ store, $vuetify: { theme } }) => { |
|
|
|
export default async({ store, $vuetify: { theme }, route }) => { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* |
|
|
|
* |
|
|
|
*/ |
|
|
|
*/ |
|
|
@ -36,7 +36,9 @@ export default async({ store, $vuetify: { theme } }) => { |
|
|
|
// if (process.client) {
|
|
|
|
// if (process.client) {
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// window.onNuxtReady(async (nuxt) => {
|
|
|
|
// window.onNuxtReady(async (nuxt) => {
|
|
|
|
|
|
|
|
if (route && route.query && 'embed' in route.query) { |
|
|
|
|
|
|
|
window.rehydrated = true |
|
|
|
|
|
|
|
} else { |
|
|
|
createPersistedState({ |
|
|
|
createPersistedState({ |
|
|
|
fetchBeforeUse: true, |
|
|
|
fetchBeforeUse: true, |
|
|
|
async rehydrated(store) { |
|
|
|
async rehydrated(store) { |
|
|
@ -57,6 +59,7 @@ export default async({ store, $vuetify: { theme } }) => { |
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
})(store) // vuex plugins can be connected to store, even after creation
|
|
|
|
})(store) // vuex plugins can be connected to store, even after creation
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|