mirror of https://github.com/apache/cloudstack.git
Clear cache APIs when the switch domain with SAML user (#5855)
This commit is contained in:
parent
c86b98e682
commit
619c754903
|
|
@ -103,7 +103,7 @@ export default {
|
|||
userid: account.userId,
|
||||
domainid: account.domainId
|
||||
}).then(response => {
|
||||
store.dispatch('GetInfo').then(() => {
|
||||
store.dispatch('GetInfo', true).then(() => {
|
||||
this.$message.success(`Switched to "${account.accountName} (${account.domainPath})"`)
|
||||
this.$router.go()
|
||||
})
|
||||
|
|
|
|||
|
|
@ -175,9 +175,9 @@ const user = {
|
|||
})
|
||||
},
|
||||
|
||||
GetInfo ({ commit }) {
|
||||
GetInfo ({ commit }, switchDomain) {
|
||||
return new Promise((resolve, reject) => {
|
||||
const cachedApis = Vue.ls.get(APIS, {})
|
||||
const cachedApis = switchDomain ? {} : Vue.ls.get(APIS, {})
|
||||
const cachedZones = Vue.ls.get(ZONES, [])
|
||||
const cachedTimezoneOffset = Vue.ls.get(TIMEZONE_OFFSET, 0.0)
|
||||
const cachedUseBrowserTimezone = Vue.ls.get(USE_BROWSER_TIMEZONE, false)
|
||||
|
|
|
|||
Loading…
Reference in New Issue