wupengfei
4 天以前 598d868e59daae4502c4f8fe4b4d3833a7e371be
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);
}