mirror of https://github.com/apache/cloudstack.git
UI: Don't set management server ID if cookie isn't set (#13404)
This commit is contained in:
parent
4262c026d0
commit
a951ac61d0
|
|
@ -93,7 +93,10 @@ router.beforeEach((to, from, next) => {
|
|||
return
|
||||
}
|
||||
store.commit('SET_LOGIN_FLAG', true)
|
||||
store.commit('SET_MS_ID', Cookies.get('managementserverid'))
|
||||
const MS_ID = Cookies.get('managementserverid')
|
||||
if (MS_ID) {
|
||||
store.commit('SET_MS_ID', MS_ID)
|
||||
}
|
||||
}
|
||||
if (Object.keys(store.getters.apis).length === 0) {
|
||||
const cachedApis = vueProps.$localStorage.get(APIS, {})
|
||||
|
|
|
|||
Loading…
Reference in New Issue