mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
[improvement] Notify: optimize set data (#1829)
This commit is contained in:
parent
27db70de4a
commit
1df3a2363d
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user