Explorar el Código

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

Michael Wang hace 5 años
padre
commit
c9d5a0d180
Se han modificado 1 ficheros con 6 adiciones y 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;