fix: 修改上传的 httpurl 为 fileurl

This commit is contained in:
奔跑的面条
2023-05-08 20:15:20 +08:00
parent f37264fdbb
commit fe87d0e433
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -294,10 +294,10 @@ export const useSync = () => {
const uploadRes = await uploadFile(uploadParams)
// 保存预览图
if(uploadRes && uploadRes.code === ResultEnum.SUCCESS) {
if (uploadRes.data.httpurl) {
if (uploadRes.data.fileurl) {
await updateProjectApi({
id: fetchRouteParamsLocation(),
indexImage: `${uploadRes.data.httpurl}`
indexImage: `${uploadRes.data.fileurl}`
})
} else {
await updateProjectApi({