Skip to content

Commit 54ec158

Browse files
author
王观伟
committed
fix: logo path error
1 parent 1d4ca40 commit 54ec158

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/components/Header/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const Header = () => {
5757
<Stack direction='row' alignItems='center'>
5858
<Box
5959
component='img'
60-
src='/logo.svg'
60+
src='/tools/logo.svg'
6161
onClick={() => {
6262
window.open('/', '_self');
6363
}}

src/components/Header/search.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export const DialogSearch = (props: { open: boolean; onClose(): void }) => {
146146
);
147147

148148
const onSearch = () => {
149-
if (!keywords) {
149+
if (!keywords.trim()) {
150150
return;
151151
}
152152
onClose();
@@ -195,7 +195,7 @@ export const DialogSearch = (props: { open: boolean; onClose(): void }) => {
195195
readOnly: false,
196196
autoFocus: true,
197197
onChange: (e) => {
198-
setKeywords(e.target.value.trim());
198+
setKeywords(e.target.value);
199199
},
200200
onKeyDown: (e) => {
201201
if (e.key === 'Enter') {

src/pages/_app.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ export default function App({
7070
width: '1180px',
7171
mx: 'auto',
7272
height: '100%',
73-
mt: isProduction ? '64px' : 0,
7473
}}
7574
>
7675
<Header />

0 commit comments

Comments
 (0)