fix 修复 超管切换租户后 点击个人中心报错
This commit is contained in:
parent
408da809a0
commit
d1b1f06fc4
@ -80,9 +80,10 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
userId: this.$store.getters.userId,
|
userId: this.$store.getters.userId,
|
||||||
tenantId: undefined,
|
|
||||||
companyName: undefined,
|
companyName: undefined,
|
||||||
tenantList: []
|
tenantList: [],
|
||||||
|
// 是否切换了租户
|
||||||
|
dynamic: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
@ -123,6 +124,7 @@ export default {
|
|||||||
dynamicTenantEvent(tenantId) {
|
dynamicTenantEvent(tenantId) {
|
||||||
if (this.companyName != null && this.companyName !== '') {
|
if (this.companyName != null && this.companyName !== '') {
|
||||||
dynamicTenant(tenantId).then(res => {
|
dynamicTenant(tenantId).then(res => {
|
||||||
|
this.dynamic = true;
|
||||||
this.$tab.closeAllPage()
|
this.$tab.closeAllPage()
|
||||||
this.$router.push('/')
|
this.$router.push('/')
|
||||||
});
|
});
|
||||||
@ -130,6 +132,7 @@ export default {
|
|||||||
},
|
},
|
||||||
dynamicClearEvent() {
|
dynamicClearEvent() {
|
||||||
dynamicClear().then(res => {
|
dynamicClear().then(res => {
|
||||||
|
this.dynamic = false;
|
||||||
this.$tab.closeAllPage()
|
this.$tab.closeAllPage()
|
||||||
this.$router.push('/')
|
this.$router.push('/')
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user