柒零 1 년 전
부모
커밋
ba7cbcccc1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      pages/index/index.js

+ 1 - 0
pages/index/index.js

@@ -3777,6 +3777,7 @@ Page({
 	startInterval: function () {
 		// 使用 setInterval 创建定时任务,每8秒执行一次 this.myMethod 方法 
 		var that = this;
+		that.clearInterval();
 		// this.intervalId = setInterval(() => {  
 		//   that.getHAData(that,that.data.hotelcode,that.data.roomcode);  
 		// }, 6000);