Skip to content

Commit

Permalink
💄 style(custom): 搜索页也将高亮视频栏
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #29
  • Loading branch information
master1lan committed Mar 5, 2023
1 parent c2ca000 commit 9b3e7ea
Showing 1 changed file with 5 additions and 1 deletion.
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 9b3e7ea

Please sign in to comment.