From 1df3a2363d6518a025c240d6f27dc06c655719d8 Mon Sep 17 00:00:00 2001 From: neverland Date: Tue, 6 Aug 2019 06:44:42 +0800 Subject: [PATCH] [improvement] Notify: optimize set data (#1829) --- packages/notify/notify.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/notify/notify.ts b/packages/notify/notify.ts index dfefe98a..17478e51 100644 --- a/packages/notify/notify.ts +++ b/packages/notify/notify.ts @@ -30,6 +30,8 @@ export default function Notify(options: NotifyOptions | string) { const context = options.context || getContext(); const notify = context.selectComponent(options.selector); + + delete options.context; delete options.selector; if (notify) {