redux中发送异步请求获取数据

    xiaoxiao2023-10-24  169

    mac 终端新建一个文件命令 touch 文件名.后缀 eg:touch list.json

    axios.get('/api/todolist') .then((res) => { //成功 console.log(res) }) .catch(() => { //失败 })
    最新回复(0)