Browse Source

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

前端爱码士 2 năm trước cách đây
mục cha
commit
c37a15fefb
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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,
       });
     });
 };