|
@@ -22,8 +22,8 @@ const SearchResultPage: React.FC = () => {
|
|
|
const searchKeyword = params?.keyword || ''
|
|
const searchKeyword = params?.keyword || ''
|
|
|
|
|
|
|
|
// 直接使用路由参数,无需useEffect
|
|
// 直接使用路由参数,无需useEffect
|
|
|
- const [keyword, setKeyword] = useState(searchKeyword)
|
|
|
|
|
- const [searchValue, setSearchValue] = useState(searchKeyword)
|
|
|
|
|
|
|
+ const [keyword, setKeyword] = useState(decodeURIComponent(searchKeyword))
|
|
|
|
|
+ const [searchValue, setSearchValue] = useState(decodeURIComponent(searchKeyword))
|
|
|
|
|
|
|
|
const {
|
|
const {
|
|
|
data,
|
|
data,
|