Skip to content

Commit

Permalink
Merge pull request #63 from EOEFANS/main
Browse files Browse the repository at this point in the history
1.4.0 增加eu都在溜什么页面
  • Loading branch information
master1lan authored and GitHub Enterprise committed Mar 31, 2023
2 parents 59ce413 + f484bf0 commit fedf750
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
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

0 comments on commit fedf750

Please sign in to comment.