- 需求:点击下载模板文件,自动下载csv文件
- 代码
// post 请求
http.postDown = (url, query, data, name) => {
return new Promise((resolve, reject) => {
request({
method: 'POST',
url: curUrl,
// post 请求
http.postDown = (url, query, data, name) => {
return new Promise((resolve, reject) => {
request({
method: 'POST',
url: curUrl,