From c37a15fefb6ffbd7f06cf01a540f9c84cbe64342 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=89=8D=E7=AB=AF=E7=88=B1=E7=A0=81=E5=A3=AB?= Date: Wed, 19 Oct 2022 13:34:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DgetParentLayout?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E6=8E=A5=E5=8F=97=E4=BA=86=E5=8F=82=E6=95=B0?= =?UTF-8?q?=EF=BC=8C=E4=BD=86=E5=B9=B6=E6=B2=A1=E6=9C=89=E7=94=A8=E4=B8=8A?= =?UTF-8?q?=20(#2290)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/constant.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/router/constant.ts b/src/router/constant.ts index d39a67e5..fb967d8d 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, }); }); }; -- GitLab