public-opinion/jsFile/public-api.js

7 lines
217 B
JavaScript

import request from './requst.js';
export function uploadImg(data) {
return request.upload("file/upload/image", data);
}
export function uploadFile(data) {
return request.upload("file/upload/file", data,'file');
}