-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Closed
Description
Version
3.0.0-rc.3
Reproduction link
https://jsfiddle.net/547377507/3a8vdjo6/
Steps to reproduce
在配置文件中,这样写在js中始终访问不到config变量,谢谢所有的回答~
config
.plugin('define')
.init((Plugin, args) => {
args.push({ config: JSON.stringify({ name: '789' }) });
console.log(init输出为:${JSON.stringify(args)}
);
return new Plugin(...args);
})
.tap((args) => {
args.push({ config: JSON.stringify({ name: '456' }) });
console.log(tap输出为:${JSON.stringify(args)}
);
return args;
});
What is expected?
输出config变量的值
What is actually happening?
输出undefined
Metadata
Metadata
Assignees
Labels
No labels