Pārlūkot izejas kodu

fix service worker update

Michael Wang 5 gadi atpakaļ
vecāks
revīzija
6454912a61
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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",
           "登录页面",