This commit is contained in:
zhuoda
2020-04-20 17:08:42 +08:00
parent d53f271fc1
commit e486c1ff33
5 changed files with 26 additions and 22 deletions

View File

@@ -1,4 +1,4 @@
import { postAxios, getAxios } from '@/lib/http';
import { postAxios, getAxios, getDownloadAxios} from '@/lib/http';
import config from '@/config';
const baseUrl = config.baseUrl.apiUrl;
export const fileApi = {
@@ -8,7 +8,7 @@ export const fileApi = {
},
// 系统文件下载通过接口
downLoadFile: id => {
return getAxios('/api/file/downLoad?id=' + id);
return getDownloadAxios('/api/file/downLoad?id=' + id);
},
// 文件上传
fileUpload: (type, data) => {