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

Refs #6505
This commit is contained in:
蘭
2024-09-20 16:02:00 +08:00
committed by wanghe-fit2cloud
parent 104af30cbf
commit d4e21ae032
@@ -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;
};