fix: 解决图片/视频预览时,重命名文件名导致浏览器缓存文件内容问题 (#6533)
Some checks failed
Build Test / build-linux-binary (push) Failing after -9m12s
Build / SonarCloud (push) Failing after -9m14s
sync2gitee / repo-sync (push) Failing after -9m15s

Refs #6505
This commit is contained in:
2024-09-19 14:00:54 +08:00 committed by GitHub
parent 43f95fd40e
commit 55bec8a911
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -115,7 +115,9 @@ const acceptParams = (props: EditProps) => {
isFullscreen.value = fileType.value === 'excel';
loading.value = true;
fileUrl.value = `${import.meta.env.VITE_API_URL as string}/files/download?path=${encodeURIComponent(props.path)}`;
fileUrl.value = `${import.meta.env.VITE_API_URL as string}/files/download?path=${encodeURIComponent(
props.path,
)}&timestamp=${new Date().getTime()}`;
open.value = true;
loading.value = false;
};