Commit b695bb57da660eee092e1076c567d9ba2635217a
1 parent
9db1ed26
当用户单租户多部门时存在未setTenant的BUG #2053
Showing
1 changed file
with
2 additions
and
2 deletions
ant-design-vue-jeecg/src/views/user/LoginSelectTenant.vue
@@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
16 | <template slot="title"> | 16 | <template slot="title"> |
17 | <span>您有多个租户,请选择登录租户</span> | 17 | <span>您有多个租户,请选择登录租户</span> |
18 | </template> | 18 | </template> |
19 | - <a-avatar style="backgroundColor:#87d068" icon="gold" /> | 19 | + <a-avatar style="backgroundColor:#87d068" icon="gold" /> |
20 | </a-tooltip> | 20 | </a-tooltip> |
21 | 21 | ||
22 | <a-select @change="handleTenantChange" :class="{'valid-error':validate_status1=='error'}" placeholder="请选择登录租户" style="margin-left:10px;width: 80%"> | 22 | <a-select @change="handleTenantChange" :class="{'valid-error':validate_status1=='error'}" placeholder="请选择登录租户" style="margin-left:10px;width: 80%"> |
@@ -183,8 +183,8 @@ | @@ -183,8 +183,8 @@ | ||
183 | return false | 183 | return false |
184 | } | 184 | } |
185 | this.departResolve().then(()=>{ | 185 | this.departResolve().then(()=>{ |
186 | + this.$store.dispatch('saveTenant', this.tenant_id); | ||
186 | if(this.isMultiTenant){ | 187 | if(this.isMultiTenant){ |
187 | - this.$store.dispatch('saveTenant', this.tenant_id); | ||
188 | this.$emit('success') | 188 | this.$emit('success') |
189 | }else{ | 189 | }else{ |
190 | this.$emit('success') | 190 | this.$emit('success') |