mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix:修复Scoped组件reolad时,找不到其他分支的组件;getComponentByName只能找到父级、父级的父级等组件,无法找到叔伯的子孙组件
This commit is contained in:
parent
01f2132847
commit
2f6b67bff6
@ -274,7 +274,8 @@ function createScopedTools(
|
||||
location.reload();
|
||||
}
|
||||
} else {
|
||||
const component = scoped.getComponentByName(name);
|
||||
const component =
|
||||
scoped.getComponentByName(name) || scoped.getComponentById(name);
|
||||
component &&
|
||||
component.reload &&
|
||||
component.reload(subPath, query, ctx);
|
||||
|
Loading…
Reference in New Issue
Block a user