mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-15 03:15:07 +08:00
重写 el-upload httpRequest 文件上传成功会走成功的钩子,失败走失败的钩子
This commit is contained in:
@ -38,3 +38,8 @@ export const getFilePresignedUrl = (path: string) => {
|
||||
export const createFile = (data: any) => {
|
||||
return request.post({ url: '/infra/file/create', data })
|
||||
}
|
||||
|
||||
// 上传文件
|
||||
export const updateFile = (data: any) => {
|
||||
return request.upload({ url: '/infra/file/upload', data })
|
||||
}
|
||||
|
Reference in New Issue
Block a user