Load persistedStated with async/await.

This commit is contained in:
lain 2019-03-13 11:29:45 +01:00
parent f397537642
commit 1387dfb889

View file

@ -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 */