Vue+axios文件下载通用方法
import api from '@/api'
import { Message } from 'element-ui'
import _ from 'lodash'
const commonExport = function (url, data) {
_.get(api, url)(data).then(res => {
if (res.data.CODE === -1) {
Message.error('出错了,请重试')
return
}
.
原创
2020-12-09 09:52:25 ·
322 阅读 ·
0 评论