Procházet zdrojové kódy

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

yuwandanmian před 2 roky
rodič
revize
ebbe8130f6
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  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();