摘要: 1. axios全局设置网络超时 axios.defaults.timeout = 30 * 1000; // 30s 2. 单独对某个请求设置网络超时 2. 单独对某个请求设置网络超时 axios.post(url, params, {timeout: 1000}) .then(res => { 阅读全文
posted @ 2021-11-29 17:14 沐子馨 阅读(6648) 评论(0) 推荐(0) 编辑