From 4705f0be1dd5d5d2ad42c7dd563f2fa5b224529d Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 28 Jul 2021 16:34:05 +0800 Subject: [PATCH] fix(Notify): default option is overrided (#9138) --- src/notify/function-call.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notify/function-call.tsx b/src/notify/function-call.tsx index 6d3af1a31..733657f0c 100644 --- a/src/notify/function-call.tsx +++ b/src/notify/function-call.tsx @@ -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);