inspect token before getting config
This commit is contained in:
parent
c453616a64
commit
8b0bb17a96
@ -26,6 +26,7 @@ export const mutations = {
|
||||
|
||||
export const actions = {
|
||||
async nuxtClientInit ({ commit, dispatch, rootState }) {
|
||||
await dispatch('auth/inspectToken', null, { root: true })
|
||||
if (rootState.auth.isLogin) {
|
||||
await dispatch('getGuiConfig')
|
||||
await dispatch('getPlayoutConfig')
|
||||
|
Loading…
Reference in New Issue
Block a user