浏览代码

bugfix 30分钟无操作,多次弹窗

yuwandanmian 2 年之前
父节点
当前提交
ebbe8130f6
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/App.vue

+ 2 - 1
src/App.vue

@@ -26,7 +26,8 @@ export default {
       setTimeout(() => {
         this.lastTime = new Date().getTime();
         if (this.$route.path.includes('/hospital')) {
-          this.timer = setInterval(this.isTimeOut, 10000);
+          clearInterval(this.timer);
+          this.timer = setInterval(this.isTimeOut, 1000);
         } else {
           clearInterval(this.timer);
           this.lastTime = new Date().getTime();