fix: 增加其他状态停止定时器

This commit is contained in:
zhangds 2024-04-11 01:57:27 +08:00
parent d362ffa629
commit 09560d95b8
4 changed files with 12 additions and 0 deletions

View File

@ -372,6 +372,9 @@
setTimeout(() => { setTimeout(() => {
self.groupProductVoucherDetail(); self.groupProductVoucherDetail();
}, 5000) }, 5000)
} else {
clearInterval(self.timeGet)
self.timeGet = null;
} }
// 代码暂时这样 // 代码暂时这样

View File

@ -372,6 +372,9 @@
setTimeout(() => { setTimeout(() => {
self.groupProductVoucherDetail(); self.groupProductVoucherDetail();
}, 5000) }, 5000)
} else {
clearInterval(self.timeGet)
self.timeGet = null;
} }
// 代码暂时这样 // 代码暂时这样

View File

@ -370,6 +370,9 @@
setTimeout(() => { setTimeout(() => {
self.groupProductVoucherDetail(); self.groupProductVoucherDetail();
}, 5000) }, 5000)
} else {
clearInterval(self.timeGet)
self.timeGet = null;
} }
} else { } else {
self.openErrorDialog(res.message) self.openErrorDialog(res.message)

View File

@ -371,6 +371,9 @@
setTimeout(() => { setTimeout(() => {
self.groupProductVoucherDetail(); self.groupProductVoucherDetail();
}, 5000) }, 5000)
} else {
clearInterval(self.timeGet)
self.timeGet = null;
} }
} else { } else {
self.openErrorDialog(res.message) self.openErrorDialog(res.message)