Skip to content

Commit afc3b66

Browse files
author
liuyang
committed
fix: 登录选择钉钉等第三方弹窗后点击取消弹窗后恢复登录按钮loading状态
1 parent 83573b3 commit afc3b66

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/views/login.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,15 +263,18 @@ export default {
263263
await this.$prompt('请输入租户名称', "提示", {
264264
confirmButtonText: "确定",
265265
cancelButtonText: "取消"
266-
}).then(({value}) => {
267-
getTenantIdByName(value).then(res => {
266+
}).then(async ({value}) => {
267+
await getTenantIdByName(value).then(res => {
268268
const tenantId = res.data;
269269
tenant = true
270270
if (tenantId && tenantId >= 0) {
271271
setTenantId(tenantId)
272272
}
273273
});
274274
}).catch(() => {
275+
// 取消登录按钮 loading状态
276+
this.loading = false;
277+
275278
return false
276279
});
277280
} else {

0 commit comments

Comments
 (0)