Browse Source

fix service worker update

Michael Wang 5 năm trước cách đây
mục cha
commit
6454912a61
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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",
           "登录页面",