This commit is contained in:
wangjiahai
2024-01-09 19:45:23 +08:00
parent 54f531e4eb
commit ddadc6252c

View File

@@ -106,6 +106,7 @@
})
if (_this.page.seconds <= 0) {
uni.hideLoading()
clearInterval(_this.page.threadA)
_this.page.threadA = null
}
@@ -116,13 +117,17 @@
});
},
onUnload() {
if (this.page.threadA != null) {
clearInterval(this.page.threadA)
}
let bus = this.data.bus
for (var i = 0; i < bus.length; i++) {
uni.$emit(bus[i] + '')
}
try {
if (this.page.threadA != null) {
clearInterval(this.page.threadA)
}
} catch (e) {
//TODO handle the exception
}
},
// 函数
methods: {