Explorar o código

fix service worker update

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

+ 1 - 1
src/features/Login/Login.vue

@@ -390,7 +390,7 @@ export default {
           headers: myHeaders,
         }
       );
-      if (!response.ok) {
+      if (!response.ok || this.newVersionAvailable) {
         window._hmt.push([
           "_trackEvent",
           "登录页面",