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

Refs #6505
This commit is contained in:
蘭
2024-09-19 06:00:54 +00:00
committed by GitHub
parent 43f95fd40e
commit 55bec8a911
@@ -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;
};