fix(client/route-switch): skip sub routes

This commit is contained in:
chenos 2022-10-15 11:09:06 +08:00
parent 6076014c54
commit 7df5129cd7

View File

@ -77,6 +77,9 @@ const MenuEditor = (props) => {
onSuccess(data) {
const schema = filterByACL(data?.data, ctx);
if (defaultSelectedUid) {
if (defaultSelectedUid.includes('/')) {
return;
}
const s = findByUid(schema, defaultSelectedUid);
if (s) {
setTitle(s.title);