diff --git a/themes/hexo/LayoutBase.js b/themes/hexo/LayoutBase.js index dd186e06..93e5b129 100644 --- a/themes/hexo/LayoutBase.js +++ b/themes/hexo/LayoutBase.js @@ -17,7 +17,7 @@ import FloatDarkModeButton from './components/FloatDarkModeButton' const LayoutBase = (props) => { const { children, headerSlot, floatSlot, meta } = props const [show, switchShow] = useState(false) - const [percent, changePercent] = useState(0) // 页面阅读百分比 + // const [percent, changePercent] = useState(0) // 页面阅读百分比 const scrollListener = () => { const targetRef = document.getElementById('wrapper') @@ -31,7 +31,7 @@ const LayoutBase = (props) => { if (shouldShow !== show) { switchShow(shouldShow) } - changePercent(per) + // changePercent(per) } useEffect(() => { smoothscroll.polyfill() @@ -55,11 +55,11 @@ const LayoutBase = (props) => { {/* 右下角悬浮 */} -