Browse Source

update login.vue 获取租户列表时默认选取第一个租户信息 ;

zlyx 2 years ago
parent
commit
895e19768b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      ruoyi-ui/src/views/login.vue

+ 3 - 0
ruoyi-ui/src/views/login.vue

@@ -138,6 +138,9 @@ export default {
     getTenantList() {
       tenantList().then(res => {
         this.tenantList = res.data;
+        if (this.tenantList != null && this.tenantList.length !== 0) {
+          this.loginForm.tenantId = this.tenantList[0].tenantId;
+        }
       });
     },
     getCookie() {