Selaa lähdekoodia

fix service worker update

Michael Wang 5 vuotta sitten
vanhempi
commit
6454912a61
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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",
           "登录页面",