wupengfei
4 天以前 f768d6fb5fc32a150d24b9dc5483ecc4ef9a6e22
src/utils/common/file.ts
@@ -56,3 +56,10 @@
  // 如果需要保留更多小数位,可以调整toFixed的参数
  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);
}