Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
GCL_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
이승윤
2021-06-12 01:51:59 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0dd003daa94bed505225126e409253700bb3bc13
0dd003da
1 parent
a582f473
feat: Input 빈 쿼리 입력시 예외처리 기능
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
frontend/src/components/common/Input.js
frontend/src/components/common/Input.js
View file @
0dd003d
...
...
@@ -78,6 +78,10 @@ const MyInput = ({
<
/InputWrap
>
<
SearchIconWrap
onClick
=
{()
=>
{
if
(
query
===
''
)
{
alert
(
'검색어를 입력 해 주세요.'
);
return
;
}
const
params
=
new
URLSearchParams
({
query
});
history
.
push
(
`search?
${
decodeURIComponent
(
params
.
toString
())}
`
);
}}
...
...
Please
register
or
login
to post a comment