perf: 优化复制下载链接
This commit is contained in:
parent
ba1ea93a4a
commit
ebbe6c64a9
@ -34,7 +34,7 @@ export default {
|
||||
fileUrl = fileUrl.replaceAll('#', '%23')
|
||||
fileUrl = fileUrl.replaceAll(/%5C/g, '/')
|
||||
|
||||
if (file.userId !== store.getters.userId) {
|
||||
if (file.userId !== store.getters.userId && !shareToken) {
|
||||
return `${baseUrl}/pre-file/${file.id}/${encodeURI(file.name)}?jmal-token=${token}&name=${username}`
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user