柒零 1 tahun lalu
induk
melakukan
ba7cbcccc1
1 mengubah file dengan 1 tambahan dan 0 penghapusan
  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);