This commit is contained in:
2026-02-17 13:55:30 +08:00
parent f90afaddca
commit 6623c656f4
17 changed files with 1464 additions and 569 deletions
+11
View File
@@ -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: {