14 lines
400 B
JavaScript
14 lines
400 B
JavaScript
import http from "@/utils/request"
|
|
export default {
|
|
upload: {
|
|
url: '/upload/admin/upload',
|
|
post: async function(data, config = {}) {
|
|
return await http.post(this.url, data, config);
|
|
}
|
|
},
|
|
uploadFile: {
|
|
post: async function(data, config = {}) {
|
|
return await http.post('/upload/admin/upload?type=file', data, config);
|
|
}
|
|
},
|
|
} |