Explorar o código

检测新版本出错,继续执行

Michael Wang %!s(int64=5) %!d(string=hai) anos
pai
achega
c9d5a0d180
Modificáronse 1 ficheiros con 6 adicións e 2 borrados
  1. 6 2
      src/features/Login/Login.vue

+ 6 - 2
src/features/Login/Login.vue

@@ -302,8 +302,12 @@ export default {
       }
       this.loginBtnLoading = true;
 
-      const hasNewVersion = await this.checkNewVersion();
-      if (hasNewVersion) return;
+      try {
+        const hasNewVersion = await this.checkNewVersion();
+        if (hasNewVersion) return;
+      } catch (error) {
+        console.log("检测新版本出错");
+      }
 
       this.loginTimeout = setTimeout(() => {
         this.loginBtnLoading = false;