当用户单租户多部门时存在未setTenant的BUG #2053

This commit is contained in:
zhangdaiscott
2020-12-09 17:38:51 +08:00
parent 9db1ed26f2
commit b695bb57da
@@ -16,7 +16,7 @@
<template slot="title"> <template slot="title">
<span>您有多个租户请选择登录租户</span> <span>您有多个租户请选择登录租户</span>
</template> </template>
<a-avatar style="backgroundColor:#87d068" icon="gold" /> <a-avatar style="backgroundColor:#87d068" icon="gold" />
</a-tooltip> </a-tooltip>
<a-select @change="handleTenantChange" :class="{'valid-error':validate_status1=='error'}" placeholder="请选择登录租户" style="margin-left:10px;width: 80%"> <a-select @change="handleTenantChange" :class="{'valid-error':validate_status1=='error'}" placeholder="请选择登录租户" style="margin-left:10px;width: 80%">
@@ -183,8 +183,8 @@
return false return false
} }
this.departResolve().then(()=>{ this.departResolve().then(()=>{
this.$store.dispatch('saveTenant', this.tenant_id);
if(this.isMultiTenant){ if(this.isMultiTenant){
this.$store.dispatch('saveTenant', this.tenant_id);
this.$emit('success') this.$emit('success')
}else{ }else{
this.$emit('success') this.$emit('success')