forked from AkkomaGang/akkoma-fe
Load persistedStated with async/await.
This commit is contained in:
parent
f397537642
commit
1387dfb889
1 changed files with 4 additions and 3 deletions
|
@ -53,9 +53,10 @@ const persistedStateOptions = {
|
|||
'users.lastLoginName',
|
||||
'oauth'
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
createPersistedState(persistedStateOptions).then((persistedState) => {
|
||||
(async () => {
|
||||
const persistedState = await createPersistedState(persistedStateOptions)
|
||||
const store = new Vuex.Store({
|
||||
modules: {
|
||||
interface: interfaceModule,
|
||||
|
@ -75,7 +76,7 @@ createPersistedState(persistedStateOptions).then((persistedState) => {
|
|||
})
|
||||
|
||||
afterStoreSetup({ store, i18n })
|
||||
})
|
||||
})()
|
||||
|
||||
// These are inlined by webpack's DefinePlugin
|
||||
/* eslint-disable */
|
||||
|
|
Loading…
Reference in a new issue