diff --git a/src/biz/Body.tsx b/src/biz/Body.tsx index 6743ed8..d68470d 100644 --- a/src/biz/Body.tsx +++ b/src/biz/Body.tsx @@ -43,6 +43,7 @@ import {getSummarize} from '../util/biz_util' import {openUrl} from '@kky002/kky-util' import Markdown from '../components/Markdown' import {random} from 'lodash-es' +import useKeyService from '../hooks/useKeyService' const Body = () => { const dispatch = useAppDispatch() @@ -207,6 +208,9 @@ const Body = () => { dispatch(setAskFold(!askFold)) }, [askFold, dispatch]) + // service + useKeyService() + // 自动滚动 useEffect(() => { if (checkAutoScroll && curOffsetTop && autoScroll && !needScroll) { @@ -304,6 +308,13 @@ const Body = () => { segmentIdx={segmentIdx} bodyRef={bodyRef}/>)} {/* tip */} +