diff --git a/src/router/constant.ts b/src/router/constant.ts index d39a67e56..fb967d8d0 100644 --- a/src/router/constant.ts +++ b/src/router/constant.ts @@ -18,7 +18,7 @@ export const getParentLayout = (_name?: string) => { return () => new Promise((resolve) => { resolve({ - name: PARENT_LAYOUT_NAME, + name: _name || PARENT_LAYOUT_NAME, }); }); };