mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	update login.vue 获取租户列表时默认选取第一个租户信息 ;
This commit is contained in:
		@@ -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() {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user