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