diff --git a/themes/starter/components/Header.js b/themes/starter/components/Header.js index e8f0c7f24b6..ef69c077a69 100644 --- a/themes/starter/components/Header.js +++ b/themes/starter/components/Header.js @@ -33,7 +33,7 @@ export const Header = props => { return () => { window.removeEventListener('scroll', navBarScollListener) } - }, [[isDarkMode]]) + }, [isDarkMode]) // 滚动监听 const throttleMs = 200 @@ -58,7 +58,7 @@ export const Header = props => {