自定义APP自定义App数据通讯
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
629 B

import request from '@/utils/axios/index'
import { AxiosPromise } from 'axios';
import { FileContent } from '@/api/common/type'
export function uploadFiledTinymce(data:any, url:any) {
return request({
url: url || '/api/upordown',
method: 'post',
data,
headers: {
'Content-Type': 'multipart/form-data'
}
})
}
export function newUploadFileApi(params:FormData): AxiosPromise<FileContent> {
return request({
// url: '/api/v1/files',
url: '/api/upordown',
method: 'post',
data: params,
headers: {
'Content-Type': 'multipart/form-data'
}
});
}