From b3fda48ba53b36f6770f399f58290ed4d95d04a6 Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 30 四月 2025 09:19:52 +0800 Subject: [PATCH] feat: 接口 --- 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