mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-21 14:38:30 +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) {
|
||||
@ -39,4 +39,4 @@ const Render = {
|
||||
}
|
||||
}
|
||||
|
||||
export default Render
|
||||
export default Render
|
Loading…
Reference in New Issue
Block a user