mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 17:51:54 +00:00
fix(Notify): Type 'Timeout' is not assignable to type 'number' (#8477)
Co-authored-by: yangwk <paul>
This commit is contained in:
@@ -59,7 +59,7 @@ function Notify(options: NotifyMessage | NotifyOptions) {
|
||||
clearTimeout(timer);
|
||||
|
||||
if (options.duration! > 0) {
|
||||
timer = setTimeout(Notify.clear, options.duration);
|
||||
timer = window.setTimeout(Notify.clear, options.duration);
|
||||
}
|
||||
|
||||
return instance;
|
||||
|
Reference in New Issue
Block a user