diff --git a/.docs/.dumi/global.scss b/.docs/.dumi/global.scss index 74939b7..a4ba0ae 100644 --- a/.docs/.dumi/global.scss +++ b/.docs/.dumi/global.scss @@ -198,8 +198,8 @@ } // 头部按钮颜色更改 -:where(.css-dev-only-do-not-override-e7e9e7).site-tabs .site-tabs-tab-btn:active, -:where(.css-dev-only-do-not-override-e7e9e7) a:hover { +.docs-app .site-tabs .site-tabs-tab-btn:active, +.docs-app a:hover { color: $docs-theme !important; } diff --git a/.docs/.dumi/theme/slots/Footer/index.tsx b/.docs/.dumi/theme/slots/Footer/index.tsx index d94314a..5af845e 100644 --- a/.docs/.dumi/theme/slots/Footer/index.tsx +++ b/.docs/.dumi/theme/slots/Footer/index.tsx @@ -9,6 +9,9 @@ import { baseLink } from "../../../../config"; import { useLocation } from "umi"; let timer: any = null; + +// 全局想往页面注入功能的地方 + export default () => { const columns = getColumns(); const location = useLocation(); @@ -25,6 +28,12 @@ export default () => { } }, [location.pathname, isReload.current]); + useEffect(() => { + if (document?.body) { + document.body.classList.add("docs-app"); + } + }, []); + const bootom = ( <> Open-source Apach2 Licensed | Copyright © 2024 | fishbubble