|
@@ -394,6 +394,23 @@ export default {
|
|
}
|
|
}
|
|
);
|
|
);
|
|
if (!response.ok || this.newVersionAvailable) {
|
|
if (!response.ok || this.newVersionAvailable) {
|
|
|
|
+ if (
|
|
|
|
+ response.ok &&
|
|
|
|
+ this.newVersionAvailable &&
|
|
|
|
+ localStorage.getItem("__swReload")
|
|
|
|
+ ) {
|
|
|
|
+ window._hmt.push([
|
|
|
|
+ "_trackEvent",
|
|
|
|
+ "登录页面",
|
|
|
|
+ "service worker刷新失败",
|
|
|
|
+ ]);
|
|
|
|
+ this.$Message.destroy();
|
|
|
|
+ this.$Message.info({
|
|
|
|
+ content: "请重新打开程序。",
|
|
|
|
+ duration: 2 * 24 * 60 * 60,
|
|
|
|
+ });
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
window._hmt.push([
|
|
window._hmt.push([
|
|
"_trackEvent",
|
|
"_trackEvent",
|
|
"登录页面",
|
|
"登录页面",
|