Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -44,7 +44,7 @@ const MyInput = ({ | ... | @@ -44,7 +44,7 @@ const MyInput = ({ |
44 | const [query, setQuery] = useState(''); | 44 | const [query, setQuery] = useState(''); |
45 | const history = useHistory(); | 45 | const history = useHistory(); |
46 | const search = useLocation(); | 46 | const search = useLocation(); |
47 | - const name = search.search.substring(7); | 47 | + const name = decodeURIComponent(search.search.substring(7)); |
48 | const dispatch = useDispatch(); | 48 | const dispatch = useDispatch(); |
49 | 49 | ||
50 | useEffect(() => { | 50 | useEffect(() => { |
... | @@ -55,6 +55,7 @@ const MyInput = ({ | ... | @@ -55,6 +55,7 @@ const MyInput = ({ |
55 | setQuery(name); | 55 | setQuery(name); |
56 | setSearchDatas(); | 56 | setSearchDatas(); |
57 | }, [name]); | 57 | }, [name]); |
58 | + | ||
58 | return ( | 59 | return ( |
59 | <InputBlock | 60 | <InputBlock |
60 | color={color} | 61 | color={color} | ... | ... |
-
Please register or login to post a comment