Skip to content
Snippets Groups Projects
Commit 1387dfb8 authored by lain's avatar lain
Browse files

Load persistedStated with async/await.

parent f3975376
No related branches found
No related tags found
2 merge requests!1028`master` refresh with `develop`,!679Afterstore refactor
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment