摘要: export function UpLoadImg(file) { console.log(file) const param = new FormData() // 创建form对象 param.append('image', file) // 通过append向form对象添加数据 const 阅读全文
posted @ 2021-11-04 14:11 闰土的土 阅读(21) 评论(0) 推荐(0) 编辑
摘要: request.js /* * @Description: * @Author: Nan * @Date: 2021-04-15 09:24:13 * @LastEditors: nanJ * @LastEditTime: 2021-09-17 15:20:28 * @FilePath: \arch 阅读全文
posted @ 2021-11-04 14:08 闰土的土 阅读(305) 评论(0) 推荐(0) 编辑
摘要: requestService.js import axios from "axios"; import _ from "lodash"; import qs from "qs"; var service = axios.create({ timeout: 40000, headers: { "Con 阅读全文
posted @ 2021-11-04 14:05 闰土的土 阅读(557) 评论(0) 推荐(0) 编辑
摘要: down.js/** * @url 下载地址 * @filename 所需要的文件名称 */ import { getToken } from '@/utils/auth' import { Message } from 'element-ui' export function downFile(u 阅读全文
posted @ 2021-11-04 13:59 闰土的土 阅读(131) 评论(0) 推荐(0) 编辑