Load persistedStated with async/await.
This commit is contained in:
parent
f397537642
commit
1387dfb889
|
@ -53,9 +53,10 @@ const persistedStateOptions = {
|
||||||
'users.lastLoginName',
|
'users.lastLoginName',
|
||||||
'oauth'
|
'oauth'
|
||||||
]
|
]
|
||||||
}
|
};
|
||||||
|
|
||||||
createPersistedState(persistedStateOptions).then((persistedState) => {
|
(async () => {
|
||||||
|
const persistedState = await createPersistedState(persistedStateOptions)
|
||||||
const store = new Vuex.Store({
|
const store = new Vuex.Store({
|
||||||
modules: {
|
modules: {
|
||||||
interface: interfaceModule,
|
interface: interfaceModule,
|
||||||
|
@ -75,7 +76,7 @@ createPersistedState(persistedStateOptions).then((persistedState) => {
|
||||||
})
|
})
|
||||||
|
|
||||||
afterStoreSetup({ store, i18n })
|
afterStoreSetup({ store, i18n })
|
||||||
})
|
})()
|
||||||
|
|
||||||
// These are inlined by webpack's DefinePlugin
|
// These are inlined by webpack's DefinePlugin
|
||||||
/* eslint-disable */
|
/* eslint-disable */
|
||||||
|
|
Loading…
Reference in New Issue