const {data} =await axios.get('/api/users'); return data; }. 我们再用hooks再封装下这个请求,包括loading等中间态的封装,处理的优雅一点
確定! 回上一頁