소스 검색

no message

xiaoxin 2 년 전
부모
커밋
b85ffc8e5e
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      pagesClockIn/home/home.vue

+ 7 - 0
pagesClockIn/home/home.vue

@@ -153,6 +153,9 @@ export default {
 		if (this.timer) {
 			clearInterval(this.timer)
 		}
+		if (this.timer2) {
+			clearInterval(this.timer2)
+		}
 	},
 	// 下拉刷新
 	onPullDownRefresh() {
@@ -433,6 +436,10 @@ export default {
 		// 点击打卡按钮回调
 		handlePunch(info) {
 			if (this.flags) {
+				if (this.timer2) {
+					clearInterval(this.timer2)
+				}
+
 				let obj = JSON.stringify(info)
 
 				if (this.takePicture) {