From d47ce54e188e415d4566b7174d57bb58d830588e Mon Sep 17 00:00:00 2001 From: liuyang Date: Wed, 15 Feb 2023 15:48:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=99=BB=E5=BD=95=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E9=92=89=E9=92=89=E7=AD=89=E7=AC=AC=E4=B8=89=E6=96=B9=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E5=90=8E=E7=82=B9=E5=87=BB=E5=8F=96=E6=B6=88=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E5=90=8E=E6=81=A2=E5=A4=8D=E7=99=BB=E5=BD=95=E6=8C=89?= =?UTF-8?q?=E9=92=AEloading=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-admin/src/views/login.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/yudao-ui-admin/src/views/login.vue b/yudao-ui-admin/src/views/login.vue index b7b76aaba..bbd2ac332 100644 --- a/yudao-ui-admin/src/views/login.vue +++ b/yudao-ui-admin/src/views/login.vue @@ -263,8 +263,8 @@ export default { await this.$prompt('请输入租户名称', "提示", { confirmButtonText: "确定", cancelButtonText: "取消" - }).then(({value}) => { - getTenantIdByName(value).then(res => { + }).then(async ({value}) => { + await getTenantIdByName(value).then(res => { const tenantId = res.data; tenant = true if (tenantId && tenantId >= 0) { @@ -272,6 +272,9 @@ export default { } }); }).catch(() => { + // 取消登录按钮 loading状态 + this.loading = false; + return false }); } else {