From b672d0ff57c303a25f9b04556161bd76242cad06 Mon Sep 17 00:00:00 2001 From: gtz <535262213@qq.com> Date: Mon, 19 Feb 2024 09:08:17 +0800 Subject: [PATCH] 'del_tenantName' --- src/views/login.vue | 46 ++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/src/views/login.vue b/src/views/login.vue index 453819d6..16fc39db 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -86,18 +86,18 @@ :model="loginForm" :rules="LoginRules" class="login-form"> - + + class="el-input__icon input-icon" /> - + -->
@@ -244,25 +244,25 @@ export default { trigger: 'blur', }, ], - tenantName: [ - { required: true, trigger: 'blur', message: '租户不能为空' }, - { - validator: (rule, value, callback) => { - // debugger - getTenantIdByName(value).then((res) => { - const tenantId = res.data; - if (tenantId && tenantId >= 0) { - // 设置租户 - setTenantId(tenantId); - callback(); - } else { - callback('租户不存在'); - } - }); - }, - trigger: 'blur', - }, - ], + // tenantName: [ + // { required: true, trigger: 'blur', message: '租户不能为空' }, + // { + // validator: (rule, value, callback) => { + // // debugger + // getTenantIdByName(value).then((res) => { + // const tenantId = res.data; + // if (tenantId && tenantId >= 0) { + // // 设置租户 + // setTenantId(tenantId); + // callback(); + // } else { + // callback('租户不存在'); + // } + // }); + // }, + // trigger: 'blur', + // }, + // ], }, loading: false, redirect: undefined,