mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
Merge pull request #8696 from xianlinzhang/fix-scoped-cmpt-cant-find-reload-cmpt
chore: Scoped组件reolad方法时增加fallback,找不到对应名称组件则继续寻找对应ID组件
This commit is contained in:
commit
c97063a794
@ -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