mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-21 22:48:13 +00:00
优化 Render 修改返回类型
This commit is contained in:
parent
b81ea80939
commit
1ad798a8b1
@ -7,7 +7,7 @@ const Render = {
|
||||
console.log('未找到e.runtime,请升级至最新版Yunzai')
|
||||
}
|
||||
return e.runtime.render(cfg.plugin || 'miao-plugin', path, params, {
|
||||
retType: cfg.retMsgId ? 'msgId' : 'default',
|
||||
retType: cfg.retType || (cfg.retMsgId ? 'msgId' : 'default'),
|
||||
beforeRender ({ data }) {
|
||||
let pluginName = ''
|
||||
if (data.pluginName !== false) {
|
||||
|
Loading…
Reference in New Issue
Block a user