diff --git a/themes/fukasawa/components/MenuList.js b/themes/fukasawa/components/MenuList.js index 6adc3a76..52bae336 100644 --- a/themes/fukasawa/components/MenuList.js +++ b/themes/fukasawa/components/MenuList.js @@ -31,10 +31,10 @@ export const MenuList = (props) => { return (<> - {links?.map(link => )} + {links?.map((link, index) => )} - {links?.map(link => )} + {links?.map((link, index) => )} diff --git a/themes/fukasawa/index.js b/themes/fukasawa/index.js index ff1237d5..9427df1a 100644 --- a/themes/fukasawa/index.js +++ b/themes/fukasawa/index.js @@ -60,14 +60,6 @@ const LayoutBase = (props) => { } }, [isCollapsed]) - // 增加一个状态以触发 Transition 组件的动画 - const [showTransition, setShowTransition] = useState(true) - useEffect(() => { - // 当 location 或 children 发生变化时,触发动画 - setShowTransition(false) - setTimeout(() => setShowTransition(true), 5) - }, [onLoading]) - if (isBrowser()) { loadExternalResource('/css/theme-fukasawa.css', 'css') } @@ -87,7 +79,7 @@ const LayoutBase = (props) => {