优化代码

This commit is contained in:
2026-01-19 13:07:02 +08:00
parent 51cfee33db
commit e3b7c63e5a
9 changed files with 157 additions and 67 deletions

View File

@@ -2,10 +2,13 @@ import request from '@/utils/request'
export default {
upload: {
url: '/api/system/upload',
url: '/api/system/file/upload',
name: '图片上传',
post: async function(params) {
return request.post(this.url, params)
post: async function(file, params) {
return request.upload(this.url, {
filePath: file,
params
})
}
}
}