Skip to content

1.4.0 增加eu都在溜什么页面 #63

Merged
merged 2 commits into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 6 additions & 1 deletion src/routers/online/index.tsx
Original file line number Diff line number Diff line change
@@ -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 (
<div className='feedContainer'>
<Content />
Expand Down
2 changes: 1 addition & 1 deletion src/routers/video/masonry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export const NormalVideoRes: FC<{
}> = ({ loading, isEmpty, data }) => {
return (
<Grid
className='max-w-full'
className='max-w-full mx-auto'
container
spacing={{
lg: 2,
Expand Down