From ebbe6c64a973b40e9226fb06eb50e634d5980202 Mon Sep 17 00:00:00 2001 From: jmal Date: Sun, 27 Apr 2025 14:21:31 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E5=A4=8D=E5=88=B6?= =?UTF-8?q?=E4=B8=8B=E8=BD=BD=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/file-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/file-config.js b/src/utils/file-config.js index b61e8bb..fa8c0f0 100644 --- a/src/utils/file-config.js +++ b/src/utils/file-config.js @@ -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}` }