Commit cec47d0283fa5ef8973ee8bd148cd267023d146e

Authored by YunaiV
2 parents 0ad74927 39dab4d4

Merge branch 'master' of https://github.com/YunaiV/ruoyi-vue-pro

yudao-ui-admin/src/views/login.vue
... ... @@ -263,8 +263,8 @@ export default {
263 263 await this.$prompt('请输入租户名称', "提示", {
264 264 confirmButtonText: "确定",
265 265 cancelButtonText: "取消"
266   - }).then(({value}) => {
267   - getTenantIdByName(value).then(res => {
  266 + }).then(async ({value}) => {
  267 + await getTenantIdByName(value).then(res => {
268 268 const tenantId = res.data;
269 269 tenant = true
270 270 if (tenantId && tenantId >= 0) {
... ... @@ -272,6 +272,9 @@ export default {
272 272 }
273 273 });
274 274 }).catch(() => {
  275 + // 取消登录按钮 loading状态
  276 + this.loading = false;
  277 +
275 278 return false
276 279 });
277 280 } else {
... ...