ooo
This commit is contained in:
@@ -15,7 +15,6 @@ export default function App(){
|
||||
|
||||
const reload=()=>{
|
||||
dispatch(fetchUsers())
|
||||
console.log(fetchUsers())
|
||||
}
|
||||
return (
|
||||
<div>
|
||||
|
||||
@@ -46,6 +46,7 @@ const _callQueryResult = () => {
|
||||
})
|
||||
}
|
||||
const fetchUsers = () => async (dispatch) => {
|
||||
console.log(dispatch)
|
||||
// 发送异步请求
|
||||
const data = await _callQueryResult();
|
||||
// 派发action,更新state.list
|
||||
|
||||
Reference in New Issue
Block a user