From 091c044abe995b30702220f0f2fa9705985470ea Mon Sep 17 00:00:00 2001 From: master1lan <278457198@qq.com> Date: Fri, 31 Mar 2023 14:30:04 +0800 Subject: [PATCH 1/2] =?UTF-8?q?:bug:=20fix(custom):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF=E8=A7=86=E9=A2=91=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=92=8C=E6=90=9C=E7=B4=A2=E7=BB=93=E6=9E=9C=E9=A1=B5=E6=9C=AA?= =?UTF-8?q?=E5=B1=85=E4=B8=ADbug=EF=BC=8C=E4=BF=AE=E5=A4=8Deu=E9=A1=B5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=90=9C=E7=B4=A2=E5=8F=82=E6=95=B0=E9=80=A0?= =?UTF-8?q?=E6=88=90=E7=9A=84=E4=B8=80=E6=AC=A1=E6=80=A7=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E5=AE=8C=E6=88=90=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routers/online/index.tsx | 7 ++++++- src/routers/video/masonry.tsx | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) 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 ( Date: Fri, 31 Mar 2023 06:39:50 +0000 Subject: [PATCH 2/2] chore(release): 1.4.0 --- CHANGELOG.md | 9 +++++++++ package.json | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) 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",