fix(util): 去除URL中的双斜杠

This commit is contained in:
2026-05-07 16:25:37 +08:00
parent 9ec90a906f
commit 4a52b9c229

View File

@@ -213,6 +213,8 @@ export default {
// console.log(img_path)
path = img_path;
}
// 修复:去除 URL 中的双斜杠,避免微信 downloadFile 域名匹配失败
path = path.replace(/([^:]\/)\/+/g, "$1");
}
// path += '?t=' + parseInt(new Date().getTime() / 1000);