Browse Source

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

Refs #6505
pull/6537/head
2 months ago committed by GitHub
parent
commit
55bec8a911
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      frontend/src/views/host/file-management/preview/index.vue

4
frontend/src/views/host/file-management/preview/index.vue

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

Loading…
Cancel
Save