From fc6bbae5805da6c95fd675210999a03802cd62ad Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期四, 23 十月 2025 15:39:12 +0800
Subject: [PATCH] fix: 数据看板
---
src/utils/common/file.ts | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/utils/common/file.ts b/src/utils/common/file.ts
index a4434bf..eff24c0 100644
--- a/src/utils/common/file.ts
+++ b/src/utils/common/file.ts
@@ -56,3 +56,10 @@
// 濡傛灉闇�瑕佷繚鐣欐洿澶氬皬鏁颁綅锛屽彲浠ヨ皟鏁磘oFixed鐨勫弬鏁�
return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];
}
+
+export function convertFormUrl2ApiBySeparator<T extends { path?: string }>(
+ urls: T[],
+ separator = '|'
+) {
+ return convertFormUrl2Api(urls).join(separator);
+}
--
Gitblit v1.9.1