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 |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/utils/common/file.ts b/src/utils/common/file.ts
index 25cbd9a..a4434bf 100644
--- a/src/utils/common/file.ts
+++ b/src/utils/common/file.ts
@@ -25,6 +25,14 @@
   return path ? [convertApi2FormUrl(path)] : [];
 }
 
+export function convertApi2FormUrlBySeparator(path: string, separator = '|') {
+  return path ? path.split(separator).map((x) => setOSSLink(x)) : [];
+}
+
+export function convertApi2FormUrlObjectBySeparator(path: string, separator = '|') {
+  return path ? path.split(separator).map(convertApi2FormUrl) : [];
+}
+
 /**
  * 鎶妘pload鐨勮矾寰勮浆鎹负涓婁紶鍒癮pi鐨勮矾寰�
  */

--
Gitblit v1.9.1