diff --git a/ruoyi-ui/src/views/login.vue b/ruoyi-ui/src/views/login.vue index 2a47e85b1..b4e313123 100644 --- a/ruoyi-ui/src/views/login.vue +++ b/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() {