diff --git a/src/routers/layout/logo/modal.tsx b/src/routers/layout/logo/modal.tsx
index 91e51b3..85cc6f3 100644
--- a/src/routers/layout/logo/modal.tsx
+++ b/src/routers/layout/logo/modal.tsx
@@ -1,4 +1,5 @@
import { Button, Link, Modal, styled } from "@mui/material";
+import { Link as Rlink } from "react-router-dom";
import { FC } from "react";
import styles from "./logo.module.less";
@@ -120,47 +121,49 @@ export const Yituo: FC<{
height: number | string;
width: number | string;
}> = ({ height, width }) => (
-
+
+
+
+
+
);
diff --git a/src/routers/layout/search/pc/search.tsx b/src/routers/layout/search/pc/search.tsx
index bbe8cbc..b038992 100644
--- a/src/routers/layout/search/pc/search.tsx
+++ b/src/routers/layout/search/pc/search.tsx
@@ -8,14 +8,14 @@ import { useNavigate } from "react-router-dom";
import { FC, forwardRef, useRef } from "react";
export default function Search() {
const [tag] = useURLParams(["tag"]);
- const searchId = `pcSearch`;
+ const inputRef = useRef(null);
const { focused, bind } = useSearchFocus();
const { onFocus, onBlur } = bind;
const { searchMode } = useSearchMode();
const navigate = useNavigate(),
handlerSubmit = () => {
- const value = (document.getElementById(searchId) as HTMLInputElement)
- .value;
+ const value = inputRef.current!.value;
+ console.log(`current input value ${value}`);
navigate(`/search?tag=${value}`);
onBlur();
};
@@ -37,12 +37,12 @@ export default function Search() {
{searchMode === "搜索tag" && (
<>
{
if (event.key === "Enter") {
handlerSubmit();