|
@@ -455,6 +455,14 @@ export default {
|
|
|
content: "请与学校申请最新的客户端,进行考试!",
|
|
|
duration: 2 * 24 * 60 * 60,
|
|
|
});
|
|
|
+ this.checkInCaseOldTimeout = setTimeout(() => {
|
|
|
+ if (this.newVersionAvailable) {
|
|
|
+ this.$Message.error({
|
|
|
+ content: "程序有更新,请重新打开客户端!",
|
|
|
+ duration: 2 * 24 * 60 * 60,
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }, 10 * 1000);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -527,6 +535,7 @@ export default {
|
|
|
beforeDestroy() {
|
|
|
clearTimeout(this.loginTimeout);
|
|
|
clearInterval(this.uploadLogInterval);
|
|
|
+ clearTimeout(this.checkInCaseOldTimeout);
|
|
|
// clearInterval(this.checkNewVersionInterval);
|
|
|
document.removeEventListener(
|
|
|
"__newSWAvailable",
|