fix:修复Scoped组件reolad时,找不到其他分支的组件;getComponentByName只能找到父级、父级的父级等组件,无法找到叔伯的子孙组件

This commit is contained in:
张先林 2023-11-10 19:28:09 +08:00
parent 01f2132847
commit 2f6b67bff6

View File

@ -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);