From 9b8c27edd8942f84da68c36d9292e14e5f93cc14 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 15 五月 2025 14:06:14 +0800
Subject: [PATCH] Merge branch 'dev-3.4.5' of http://120.26.58.240:8888/r/12333GovernmentWeb into dev-3.4.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