parent
25c89fed0c
commit
8cc0219468
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,31 @@ |
||||
import { axios } from '@/utils/request' |
||||
|
||||
// api接口列表
|
||||
const api = { |
||||
image: '/upload/image', |
||||
video: '/upload/video' |
||||
} |
||||
|
||||
/** |
||||
* 上传图片 |
||||
* @param {*} data |
||||
*/ |
||||
export function image (data) { |
||||
return axios({ |
||||
url: api.image, |
||||
method: 'post', |
||||
data |
||||
}) |
||||
} |
||||
|
||||
/** |
||||
* 上传视频 |
||||
* @param {*} data |
||||
*/ |
||||
export function video (data) { |
||||
return axios({ |
||||
url: api.video, |
||||
method: 'post', |
||||
data |
||||
}) |
||||
} |
Loading…
Reference in new issue