From faa3cf24ecc9ea2ffe0ee2bdc07ac9c0742d2e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A6=99=E7=A0=81=E7=94=9F=E8=8A=B1?= <18523774412@qq.com> Date: Wed, 20 Dec 2023 16:24:42 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=E4=BC=98=E5=8C=96=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/utils/router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/utils/router.ts b/web/src/utils/router.ts index b09c8968..720aa2a1 100644 --- a/web/src/utils/router.ts +++ b/web/src/utils/router.ts @@ -113,7 +113,7 @@ export const handleFrontendRoute = (routes: any, menus: any) => { memberCenter.mergeAuthNode(handleAuthNode(menus, menuMemberCenterBaseRoute)) memberCenter.mergeNavUserMenus(handleMenuRule(menus, '/', ['nav_user_menu'])) - memberCenter.setShowHeadline(menus.length > 1 ? true : false) + memberCenter.setShowHeadline(menus.length > 1) memberCenter.setViewRoutes(handleMenuRule(menus, menuMemberCenterBaseRoute)) } }