mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-05-26 00:09:15 +08:00
fix: minor fix
This commit is contained in:
parent
abbb41083e
commit
fea8721f1e
@ -38,14 +38,9 @@ export default {
|
|||||||
type: 'success',
|
type: 'success',
|
||||||
message: leftSec.toString()
|
message: leftSec.toString()
|
||||||
});
|
});
|
||||||
window.setInterval(() => {
|
cosnt id = window.setInterval(() => {
|
||||||
if (leftSec <= 0) {
|
|
||||||
window.clearInterval();
|
|
||||||
toast.clear();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (leftSec <= 1) {
|
if (leftSec <= 1) {
|
||||||
window.clearInterval();
|
window.clearInterval(id);
|
||||||
toast.message = '跳转中...'
|
toast.message = '跳转中...'
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -111,7 +106,7 @@ export default {
|
|||||||
type: 'success',
|
type: 'success',
|
||||||
message: leftSec.toString()
|
message: leftSec.toString()
|
||||||
});
|
});
|
||||||
window.setInterval(() => {
|
const id = window.setInterval(() => {
|
||||||
if (leftSec <= 1) {
|
if (leftSec <= 1) {
|
||||||
window.clearInterval();
|
window.clearInterval();
|
||||||
toast.message = '跳转中...'
|
toast.message = '跳转中...'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user