摘要: import axios from "axios"; export const axiosDownload = async (url, params, fileName) => { let res = await axios.get(url, { responseType: 'blob', head 阅读全文
posted @ 2022-06-21 12:17 天官赐福· 阅读(338) 评论(0) 推荐(0) 编辑
摘要: axios({ // 用axios发送post请求 method: 'post', url: '', // 请求地址 data: req, // 参数 headers: { 'content-type': 'application/json; charset=utf-8', }, responseT 阅读全文
posted @ 2022-06-21 11:20 天官赐福· 阅读(368) 评论(0) 推荐(0) 编辑
摘要: const service = axios.create({}); let formData = new FormData(); formData.append('file', file.file.originFileObj);//文件 formData.append('req', JSON.str 阅读全文
posted @ 2022-06-21 11:11 天官赐福· 阅读(464) 评论(0) 推荐(0) 编辑
返回顶端