浏览代码

fix service worker update

Michael Wang 5 年之前
父节点
当前提交
6454912a61
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/features/Login/Login.vue

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

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