From b5ee2a19d31d0601cad5450d80912f54a334b2ed Mon Sep 17 00:00:00 2001 From: jo-hnny Date: Tue, 9 May 2023 09:53:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(console):=20=E4=BF=AE=E5=A4=8D=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=98=AF=E5=90=A6=E5=8F=AF=E8=A7=81=E7=BC=BA=E5=B0=91?= =?UTF-8?q?=E4=BA=86children=E7=9A=84=E9=97=AE=E9=A2=98=20(#2282)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/auth/web/templates/error.tmpl.html | 15 +-------------- .../components/permission-provider/index.tsx | 2 +- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/pkg/auth/web/templates/error.tmpl.html b/pkg/auth/web/templates/error.tmpl.html index 3f770afcc..6d853daf7 100644 --- a/pkg/auth/web/templates/error.tmpl.html +++ b/pkg/auth/web/templates/error.tmpl.html @@ -7,22 +7,9 @@ {%.Title%} - Error - - - - - - - - - - - - - + - diff --git a/web/console/src/modules/common/components/permission-provider/index.tsx b/web/console/src/modules/common/components/permission-provider/index.tsx index d88f851e5..69ad34374 100644 --- a/web/console/src/modules/common/components/permission-provider/index.tsx +++ b/web/console/src/modules/common/components/permission-provider/index.tsx @@ -10,7 +10,7 @@ export function checkCustomVisible(value: string) { const path = value.split('.'); const customConfig = getCustomConfig(); - const config = path.reduce((config, key) => config?.[key], customConfig); + const config = path.reduce((config, key) => config?.children?.[key], customConfig); return config?.visible ?? true; }