From cc64534976d551fd9f6f78f76c2cee6c02666ab7 Mon Sep 17 00:00:00 2001 From: zengchenxi Date: Wed, 10 Jan 2024 13:52:00 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=99=BB=E5=BD=95=E3=80=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E7=A7=9F=E6=88=B7=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/Login/components/LoginForm.vue | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/mes-ui/mes-ui-admin-vue3/src/views/Login/components/LoginForm.vue b/mes-ui/mes-ui-admin-vue3/src/views/Login/components/LoginForm.vue index 05f75041..891136f3 100644 --- a/mes-ui/mes-ui-admin-vue3/src/views/Login/components/LoginForm.vue +++ b/mes-ui/mes-ui-admin-vue3/src/views/Login/components/LoginForm.vue @@ -16,7 +16,7 @@ - + @@ -184,9 +184,9 @@ const loginData = reactive({ captchaEnable: import.meta.env.VITE_APP_CAPTCHA_ENABLE, tenantEnable: import.meta.env.VITE_APP_TENANT_ENABLE, loginForm: { - tenantName: '系统租户', - username: 'admin', - password: 'admin123', + tenantName: '', + username: '', + password: '', captchaVerification: '', rememberMe: false } @@ -244,6 +244,13 @@ const loading = ref() // ElLoading.service 返回的实例 const handleLogin = async (params) => { loginLoading.value = true try { + // 固定租户 + if(loginData.loginForm.username == 'admin'){ + loginData.loginForm.tenantName = '系统租户'; + }else{ + loginData.loginForm.tenantName = '合立智能化系统'; + } + await getTenantId() const data = await validForm() if (!data) {