Skip to content

Commit

Permalink
Merge pull request #36 from EOEFANS/main
Browse files Browse the repository at this point in the history
增加搜索页面下视频栏高亮功能,提醒用户搜索目前只能搜索视频
  • Loading branch information
master1lan authored and GitHub Enterprise committed Mar 5, 2023
2 parents 61416b8 + 61cb917 commit cb6e3be
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 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.0.4 (2023-03-05)


### 💄 Styles

* **custom**: 搜索页也将高亮视频栏 ([9b3e7ea](https://vlink.dev/EOEFANS/eoefans-web/commits/9b3e7ea)), closes [#29](https://vlink.dev/EOEFANS/eoefans-web/issues/29)



## 1.0.3 (2023-03-05)


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.0.3",
"version": "1.0.4",
"type": "module",
"scripts": {
"dev": "vite --config ./config/vite.dev.config.ts",
Expand Down
6 changes: 5 additions & 1 deletion src/routers/layout/logo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ const useRouterMatchWithDefaultRouter = (urls: string[]) => {
return lists.some((item) => item !== null);
};
const RouterListAndQA = () => {
const isVideoPage = useRouterMatchWithDefaultRouter(["/", "/video"]),
const isVideoPage = useRouterMatchWithDefaultRouter([
"/",
"/video",
"/search",
]),
isPhotoPage = useRouterMatchWithDefaultRouter(["/photo"]),
isActive = (label: string) => {
if (
Expand Down

0 comments on commit cb6e3be

Please sign in to comment.