From 598d868e59daae4502c4f8fe4b4d3833a7e371be Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期三, 23 七月 2025 16:45:13 +0800 Subject: [PATCH] feat: 接口 --- 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