diff --git a/CHANGELOG.md b/CHANGELOG.md index 504d8e2..f21550f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,15 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +# 1.4.0 (2023-03-31) + + +### 🐛 Bug Fixes + +* **custom**: 修复手机端视频页面和搜索结果页未居中bug,修复eu页修改搜索参数造成的一次性加载完成情况 ([091c044](https://vlink.dev/EOEFANS/eoefans-web/commits/091c044)) + + + ## 1.3.2 (2023-03-31) diff --git a/package.json b/package.json index 8cc9411..6ecba18 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eoefans-web", - "version": "1.3.2", + "version": "1.4.0", "type": "module", "scripts": { "dev": "vite --config ./config/vite.dev.config.ts", diff --git a/src/routers/online/index.tsx b/src/routers/online/index.tsx index 5ef81bf..535cbd4 100644 --- a/src/routers/online/index.tsx +++ b/src/routers/online/index.tsx @@ -1,12 +1,17 @@ /** * */ -import { useSetEuFetchParamas } from "@store/euWhatLook"; +import { useGetEuFetchParmas, useSetEuFetchParamas } from "@store/euWhatLook"; import Content from "./content"; import { useEffect } from "react"; export default function Index() { const handerSetEuParmas = useSetEuFetchParamas(); useEffect(handerSetEuParmas.bind(null, "online"), []); + const effectDeps = useGetEuFetchParmas(); + useEffect(() => { + //在滚动的过程切换参数应该自动滚动到顶端防止一次性加载完成 + window.scrollTo({ top: 0 }); + }, [effectDeps]); return (
diff --git a/src/routers/video/masonry.tsx b/src/routers/video/masonry.tsx index 59fc4f1..f581ab0 100644 --- a/src/routers/video/masonry.tsx +++ b/src/routers/video/masonry.tsx @@ -153,7 +153,7 @@ export const NormalVideoRes: FC<{ }> = ({ loading, isEmpty, data }) => { return (