diff --git a/src/utils/file-config.js b/src/utils/file-config.js index db5db56..9a1d59d 100644 --- a/src/utils/file-config.js +++ b/src/utils/file-config.js @@ -38,6 +38,7 @@ export default { let baseUrl = serverUrl || this.baseUrl let fileUrl = `${baseUrl}/file/${store.getters.name}${encodeURIComponent(file.path)}${encodeURIComponent(file.name)}` fileUrl = fileUrl.replaceAll(/%5C/g, '/') + fileUrl = fileUrl.replaceAll(/%2F/g, '/') if (file.userId !== store.getters.userId && token && !shareToken) { return `${baseUrl}/pre-file/${file.id}/${encodeURIComponent(file.name)}?jmal-token=${token}&name=${username}`