fix(client/route-switch): skip sub routes
This commit is contained in:
parent
6076014c54
commit
7df5129cd7
@ -77,6 +77,9 @@ const MenuEditor = (props) => {
|
|||||||
onSuccess(data) {
|
onSuccess(data) {
|
||||||
const schema = filterByACL(data?.data, ctx);
|
const schema = filterByACL(data?.data, ctx);
|
||||||
if (defaultSelectedUid) {
|
if (defaultSelectedUid) {
|
||||||
|
if (defaultSelectedUid.includes('/')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
const s = findByUid(schema, defaultSelectedUid);
|
const s = findByUid(schema, defaultSelectedUid);
|
||||||
if (s) {
|
if (s) {
|
||||||
setTitle(s.title);
|
setTitle(s.title);
|
||||||
|
Loading…
Reference in New Issue
Block a user