Procházet zdrojové kódy

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

zlyx před 2 roky
rodič
revize
895e19768b
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  1. 3 0
      ruoyi-ui/src/views/login.vue

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

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