mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 08:37:23 +00:00
fix: minor fix
This commit is contained in:
@@ -38,14 +38,9 @@ export default {
|
||||
type: 'success',
|
||||
message: leftSec.toString()
|
||||
});
|
||||
window.setInterval(() => {
|
||||
if (leftSec <= 0) {
|
||||
window.clearInterval();
|
||||
toast.clear();
|
||||
return;
|
||||
}
|
||||
cosnt id = window.setInterval(() => {
|
||||
if (leftSec <= 1) {
|
||||
window.clearInterval();
|
||||
window.clearInterval(id);
|
||||
toast.message = '跳转中...'
|
||||
return;
|
||||
}
|
||||
@@ -111,7 +106,7 @@ export default {
|
||||
type: 'success',
|
||||
message: leftSec.toString()
|
||||
});
|
||||
window.setInterval(() => {
|
||||
const id = window.setInterval(() => {
|
||||
if (leftSec <= 1) {
|
||||
window.clearInterval();
|
||||
toast.message = '跳转中...'
|
||||
|
Reference in New Issue
Block a user