From 6fd420d0f3386047bad0113bf5714267aade2fd4 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期一, 21 七月 2025 09:33:20 +0800 Subject: [PATCH] Merge branch 'master' into dev-3.4.2.5 --- src/utils/common/file.ts | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/utils/common/file.ts b/src/utils/common/file.ts index 2582146..a4434bf 100644 --- a/src/utils/common/file.ts +++ b/src/utils/common/file.ts @@ -26,7 +26,11 @@ } export function convertApi2FormUrlBySeparator(path: string, separator = '|') { - return path.split(separator).map((x) => setOSSLink(x)); + return path ? path.split(separator).map((x) => setOSSLink(x)) : []; +} + +export function convertApi2FormUrlObjectBySeparator(path: string, separator = '|') { + return path ? path.split(separator).map(convertApi2FormUrl) : []; } /** -- Gitblit v1.9.1