Commit 3cf1f0a4 by peii

fix: 全局返回后端处理错误时处理

parent 83d4a589
Showing with 1 additions and 1 deletions
......@@ -137,7 +137,7 @@ class SearchPage extends Component {
this.setState({
data: {
...single_all_search?.data,
item: [...oldData, ...single_all_search?.data.item],
item: [...oldData, ...(single_all_search?.data?.item || [])],
},
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment