From 6bac509f8e6efc205d9f37a84c9b019ec828467a Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 07 五月 2025 14:22:26 +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