From 00facb65e1eae814705e09a9b0a33eb491720cec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=B5=A9=E6=9E=97?= Date: Tue, 30 Jan 2024 14:51:33 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"docx=20=E6=A0=87=E9=A2=98=E4=B9=B1?= =?UTF-8?q?=E7=A0=81"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit b3d7d762811e77ef86b986acc2100d6c8125766a. --- services/service-object-graphql/src/getGraphqlActions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/service-object-graphql/src/getGraphqlActions.ts b/services/service-object-graphql/src/getGraphqlActions.ts index 000fb71f8f..1f68c3eb66 100644 --- a/services/service-object-graphql/src/getGraphqlActions.ts +++ b/services/service-object-graphql/src/getGraphqlActions.ts @@ -744,7 +744,7 @@ export async function translateToUI(objConfig, doc, userSession: any, selectorFi fileValue = _.map(fileRecords, (fileRecord) => { return { name: fileRecord.original?.name, - url: absoluteUrl(`/api/files/${storageName}/${fileRecord._id}/${fileRecord.original?.name}${optionsStr}`), + url: absoluteUrl(`/api/files/${storageName}/${fileRecord._id}${optionsStr}`), size: fileRecord.original?.size, type: fileRecord.original?.type, }; @@ -759,7 +759,7 @@ export async function translateToUI(objConfig, doc, userSession: any, selectorFi if (fileRecord) { fileValue = { name: fileRecord["original"]["name"], - url: absoluteUrl(`/api/files/${storageName}/${value}/${fileRecord.original?.name}${optionsStr}`), + url: absoluteUrl(`/api/files/${storageName}/${value}${optionsStr}`), size: fileRecord.original?.size, type: fileRecord.original?.type };