diff --git a/config/vite.master.config.ts b/config/vite.master.config.ts index 56938d5..dcac897 100644 --- a/config/vite.master.config.ts +++ b/config/vite.master.config.ts @@ -83,6 +83,8 @@ export default mergeConfig( react: ["react", "react-dom"], "react-router": ["react-router-dom"], "react-redux": ["@reduxjs/toolkit", "react-redux"], + masonic: ["masonic"], + sentry: ["@sentry/react", "@sentry/tracing"], axios: ["axios"], lib: [ "@mui/icons-material", @@ -104,6 +106,7 @@ export default mergeConfig( "react-intersection-observer", "dayjs", ], + "react-photo-view": ["react-photo-view"], }, }, }, diff --git a/src/routers/layout/header.tsx b/src/routers/layout/header.tsx index 358f891..1556dd7 100644 --- a/src/routers/layout/header.tsx +++ b/src/routers/layout/header.tsx @@ -24,7 +24,7 @@ const ReactiveHeader = memo(() => { return (
{/* 手机端 */} -
+
{/* pc端和平板端header部 */} diff --git a/src/routers/layout/search/pc/search.tsx b/src/routers/layout/search/pc/search.tsx index 0367e24..f0f4af8 100644 --- a/src/routers/layout/search/pc/search.tsx +++ b/src/routers/layout/search/pc/search.tsx @@ -119,13 +119,15 @@ const AdvanceSearchItem = forwardRef( (props, ref) => { const { inputRef, handerfocus } = useBackRef(ref); const { focused } = useSearchFocus(); + const inptValue = inputRef.current?.value, + showedTitle = focused ? props.title : inptValue ? inptValue : props.title; return ( <>
- {focused ? props.title : inputRef.current?.value} + {showedTitle} ((props, ref) => { const { inputRef, handerfocus } = useBackRef(ref); const { focused } = useSearchFocus(); + const inptValue = inputRef.current?.value, + showedTitle = focused ? props.title : inptValue ? inptValue : props.title; return ( <>
- {focused ? props.title : inputRef.current?.value} + {showedTitle}