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