From dfc13a8b882672c46872a526cf5f234e9267ce77 Mon Sep 17 00:00:00 2001 From: lyp Date: Thu, 13 Mar 2025 16:54:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E5=B1=9E=E8=80=85=E9=80=89=E6=8B=A9?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/route/index/Index.tsx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/route/index/Index.tsx b/src/route/index/Index.tsx index 2824814..e48fb0c 100644 --- a/src/route/index/Index.tsx +++ b/src/route/index/Index.tsx @@ -988,6 +988,21 @@ export default function Index() { }, []); useEffect(() => { + // loactionStorage里的activeMenu + if (location.pathname == '/') { + nav('/home', { + state: { + keyword: keywords, + type: type, + chargeAdditionals: chargeAdditionals, + tagDataId: tagDataId, + authorId: authorId, + payStatus: payStatus, + projRemindId: projRemindId, + // tagNot + } + }) + } if (location.pathname.includes('/home')) { nav('/home', { state: { @@ -1522,7 +1537,8 @@ export default function Index() { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', - }}> + }} + >