应该 url decode 一下 url 中提取的文件名

This commit is contained in:
liaoxuezhi 2019-11-04 12:44:46 +08:00
parent 2b2a699bd4
commit 142a57b1d3

View File

@ -79,7 +79,7 @@ let preventEvent = (e: any) => e.stopPropagation();
function getNameFromUrl(url: string) {
if (/(?:\/|^)([^\/]+?)$/.test(url)) {
return RegExp.$1;
return decodeURIComponent(RegExp.$1);
}
return url;