wait for gui config

This commit is contained in:
jb-alvarado 2021-03-22 16:44:26 +01:00
parent 0ee2dad515
commit e8ba2f0e67

View File

@ -201,19 +201,19 @@ export default {
}
this.checkLogin()
this.$store.dispatch('config/getGuiConfig')
await this.$store.dispatch('config/getGuiConfig')
this.$store.dispatch('config/getPlayoutConfig')
this.$store.dispatch('config/getUserConfig')
} catch (e) {
this.formError = e.message
}
},
async logout () {
logout () {
clearInterval(this.interval)
try {
await this.$store.commit('auth/REMOVE_TOKEN')
await this.$store.commit('auth/UPDATE_IS_LOGIN', false)
this.$store.commit('auth/REMOVE_TOKEN')
this.$store.commit('auth/UPDATE_IS_LOGIN', false)
} catch (e) {
this.formError = e.message
}