mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +08:00
Merge pull request #9982 from wibetter/master
fix(amis-core): 事件动作/组件动作/未找到组件提示增加组件ID信息,方便知晓哪个组件未找到。
This commit is contained in:
commit
e5e05f231d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user