From 1ad798a8b197f5580122d4b5904577e1637c5938 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=F0=9F=8C=8C?= Date: Sat, 23 Dec 2023 00:03:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20Render=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=BF=94=E5=9B=9E=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/common/Render.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/common/Render.js b/components/common/Render.js index f1fe90ca..95ec7268 100644 --- a/components/common/Render.js +++ b/components/common/Render.js @@ -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 \ No newline at end of file