export function pathEscape()

in common/utils.ts [123:131]


export function pathEscape(filePath: string): string {
  // 先使用encodeURIComponent进行编码
  let encoded = encodeURIComponent(filePath);

  // 将编码后的%2F(/的编码)替换回/
  encoded = encoded.replace(/%2F/gi, "/");

  return encoded;
}