fix(Notify): default option is overrided (#9138)

This commit is contained in:
neverland 2021-07-28 16:34:05 +08:00 committed by GitHub
parent b7e6e68a92
commit 4705f0be1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,7 @@ function Notify(options: NotifyMessage | NotifyOptions) {
initInstance();
}
options = extend(Notify.currentOptions, parseOptions(options));
options = extend({}, Notify.currentOptions, parseOptions(options));
instance.open(options);
clearTimeout(timer);