From c779e027ef3fd633cc9b43d8cff1eae4d334f56b Mon Sep 17 00:00:00 2001 From: CanisMinor Date: Thu, 2 May 2024 03:01:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20Fix=20router=20path=20in?= =?UTF-8?q?=20UserPanel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/(main)/@nav/features/UserPanel/useMenu.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/(main)/@nav/features/UserPanel/useMenu.tsx b/src/app/(main)/@nav/features/UserPanel/useMenu.tsx index 8c62ba446abb..8b5ff9e4cd8d 100644 --- a/src/app/(main)/@nav/features/UserPanel/useMenu.tsx +++ b/src/app/(main)/@nav/features/UserPanel/useMenu.tsx @@ -86,9 +86,7 @@ export const useMenu = () => { icon: , key: 'setting', label: {t('userPanel.setting')}, - onClick: () => { - router.push('/settings/common'); - }, + onClick: () => router.push('/settings/m', { tab: 'common' }), }, { type: 'divider',