From 478f9013fc364bee50ed2efb369852ef7466ce5c Mon Sep 17 00:00:00 2001 From: pompurin404 Date: Wed, 14 Aug 2024 17:39:57 +0800 Subject: [PATCH] keep order --- src/renderer/src/App.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 80adcb6..13ff195 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -57,6 +57,10 @@ const App: React.FC = () => { const location = useLocation() const page = useRoutes(routes) + useEffect(() => { + setOrder(siderOrder) + }, [siderOrder]) + useEffect(() => { setTheme(appTheme) }, [appTheme])