mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
feat: 简化toast为单个intance
This commit is contained in:
@@ -39,6 +39,11 @@ export default {
|
||||
message: leftSec.toString()
|
||||
});
|
||||
window.setInterval(() => {
|
||||
if (leftSec <= 0) {
|
||||
window.clearInterval();
|
||||
toast.clear();
|
||||
return;
|
||||
}
|
||||
if (leftSec <= 1) {
|
||||
window.clearInterval();
|
||||
toast.message = '跳转中...'
|
||||
|
Reference in New Issue
Block a user