fix: 解决图片/视频预览时,重命名文件名导致浏览器缓存文件内容问题 (#6533)

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;
};