更新
This commit is contained in:
@@ -23,6 +23,17 @@ export default {
|
||||
},
|
||||
},
|
||||
|
||||
// 文件上传
|
||||
upload: {
|
||||
post: async function (file) {
|
||||
const formData = new FormData()
|
||||
formData.append('file', file)
|
||||
return await request.post('upload', formData, {
|
||||
headers: { 'Content-Type': 'multipart/form-data' }
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
// 用户管理
|
||||
users: {
|
||||
list: {
|
||||
|
||||
Reference in New Issue
Block a user