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', - }}> + }} + >