Explorar o código

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

zlyx %!s(int64=2) %!d(string=hai) anos
pai
achega
895e19768b
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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() {