From f1a370ce2a9ea03dbfb2b3b3ec1824c5523a8ce3 Mon Sep 17 00:00:00 2001 From: wibetter <365533093@qq.com> Date: Tue, 9 Apr 2024 11:05:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(amis-core):=20=E4=BA=8B=E4=BB=B6=E5=8A=A8?= =?UTF-8?q?=E4=BD=9C/=E7=BB=84=E4=BB=B6=E5=8A=A8=E4=BD=9C/=E6=9C=AA?= =?UTF-8?q?=E6=89=BE=E5=88=B0=E7=BB=84=E4=BB=B6=E6=8F=90=E7=A4=BA=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=BB=84=E4=BB=B6ID=E4=BF=A1=E6=81=AF=EF=BC=8C?= =?UTF-8?q?=E6=96=B9=E4=BE=BF=E7=9F=A5=E6=99=93=E5=93=AA=E4=B8=AA=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=9C=AA=E6=89=BE=E5=88=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis-core/src/actions/CmptAction.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/amis-core/src/actions/CmptAction.ts b/packages/amis-core/src/actions/CmptAction.ts index e8c8bd1c8..844868273 100644 --- a/packages/amis-core/src/actions/CmptAction.ts +++ b/packages/amis-core/src/actions/CmptAction.ts @@ -59,8 +59,7 @@ export class CmptAction implements RendererAction { : renderer; // 如果key指定了,但是没找到组件,则报错 if (key && !component) { - const msg = - '尝试执行一个不存在的目标组件动作,请检查目标组件非隐藏状态,且正确指定了componentId或componentName'; + const msg = `尝试执行一个不存在的目标组件动作(${key}),请检查目标组件非隐藏状态,且正确指定了componentId或componentName`; if (action.ignoreError === false) { throw Error(msg); } else {