From 1ac98f522f498e394f23fea5c1079957f1d831cd Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期五, 17 二月 2023 16:46:24 +0800 Subject: [PATCH] fix 修复 用户与角色新增之后 id 未传递给其他方法问题 --- ruoyi-ui/src/views/login.vue | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/ruoyi-ui/src/views/login.vue b/ruoyi-ui/src/views/login.vue index 2a47e85..b4e3131 100644 --- a/ruoyi-ui/src/views/login.vue +++ b/ruoyi-ui/src/views/login.vue @@ -138,6 +138,9 @@ getTenantList() { tenantList().then(res => { this.tenantList = res.data; + if (this.tenantList != null && this.tenantList.length !== 0) { + this.loginForm.tenantId = this.tenantList[0].tenantId; + } }); }, getCookie() { -- Gitblit v1.9.3