Преглед изворни кода

:zap: 增加验证码刷新机制

smallchill пре 6 година
родитељ
комит
d9d582f0d6
1 измењених фајлова са 3 додато и 2 уклоњено
  1. 3 2
      src/page/login/userlogin.vue

+ 3 - 2
src/page/login/userlogin.vue

@@ -140,13 +140,14 @@
               this.$router.push({path: this.tagWel.value});
               this.$router.push({path: this.tagWel.value});
               loading.close();
               loading.close();
             }).catch(() => {
             }).catch(() => {
-              loading.close()
+              loading.close();
+              this.refreshCode();
             });
             });
           }
           }
         });
         });
       },
       },
       getTenant() {
       getTenant() {
-        let domain = window.location.href.replace("/#/login", "");
+        let domain = window.location.href.split("/#/")[0];
         // 临时指定域名,方便测试
         // 临时指定域名,方便测试
         //domain = "https://bladex.vip";
         //domain = "https://bladex.vip";
         info(domain).then(res => {
         info(domain).then(res => {