diff --git a/packages/core/client/src/route-switch/antd/admin-layout/index.tsx b/packages/core/client/src/route-switch/antd/admin-layout/index.tsx index 07adf5e65..62e0e7272 100644 --- a/packages/core/client/src/route-switch/antd/admin-layout/index.tsx +++ b/packages/core/client/src/route-switch/antd/admin-layout/index.tsx @@ -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);