Explorar o código

fix: 修复getParentLayout方法接受了参数,但并没有用上 (#2290)

前端爱码士 %!s(int64=2) %!d(string=hai) anos
pai
achega
c37a15fefb
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/router/constant.ts

+ 1 - 1
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,
       });
     });
 };