wanghousheng 11 months ago
parent 70d1eba2de
commit 6594ddfb2f
  1. 31
      src/api/upload/index.js

@ -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…
Cancel
Save