|
@@ -80,10 +80,12 @@ export const useUpload = () => {
|
|
return { data: presignedInfo.url }
|
|
return { data: presignedInfo.url }
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
|
|
+ debugger
|
|
// 模式二:后端上传
|
|
// 模式二:后端上传
|
|
// 重写 el-upload httpRequest 文件上传成功会走成功的钩子,失败走失败的钩子
|
|
// 重写 el-upload httpRequest 文件上传成功会走成功的钩子,失败走失败的钩子
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
- FileApi.updateFile({ file: options.file })
|
|
|
|
|
|
+ FileApi.updateFilePath({ file: options.file })
|
|
|
|
+ // FileApi.updateFile({ file: options.file })
|
|
.then((res) => {
|
|
.then((res) => {
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
resolve(res)
|
|
resolve(res)
|