Merge pull request #433 from jamebal/dev
fix(file-config): 对文件名进行 URI 编码
This commit is contained in:
commit
01cad1ed79
@ -145,9 +145,9 @@ export default {
|
|||||||
},
|
},
|
||||||
directFileUrl: function(mark, file) {
|
directFileUrl: function(mark, file) {
|
||||||
if (file.isFolder) {
|
if (file.isFolder) {
|
||||||
return window.location.origin + `${this.baseUrl}/direct-file/${mark}/${file.name}.zip`
|
return window.location.origin + `${this.baseUrl}/direct-file/${mark}/${encodeURI(file.name)}.zip`
|
||||||
} else {
|
} else {
|
||||||
return window.location.origin + `${this.baseUrl}/direct-file/${mark}/${file.name}`
|
return window.location.origin + `${this.baseUrl}/direct-file/${mark}/${encodeURI(file.name)}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user