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

This commit is contained in:
zlyx 2023-02-17 09:36:48 +08:00
parent 173261e644
commit 895e19768b

View File

@ -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() {