Skip to content

增加搜索页面下视频栏高亮功能,提醒用户搜索目前只能搜索视频 #36

Merged
merged 2 commits into from
Mar 5, 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.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