We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83573b3 commit afc3b66Copy full SHA for afc3b66
src/views/login.vue
@@ -263,15 +263,18 @@ export default {
263
await this.$prompt('请输入租户名称', "提示", {
264
confirmButtonText: "确定",
265
cancelButtonText: "取消"
266
- }).then(({value}) => {
267
- getTenantIdByName(value).then(res => {
+ }).then(async ({value}) => {
+ await getTenantIdByName(value).then(res => {
268
const tenantId = res.data;
269
tenant = true
270
if (tenantId && tenantId >= 0) {
271
setTenantId(tenantId)
272
}
273
});
274
}).catch(() => {
275
+ // 取消登录按钮 loading状态
276
+ this.loading = false;
277
+
278
return false
279
280
} else {
0 commit comments