Skip to content

Commit

Permalink
fix: 解决图片/视频预览时,重命名文件名导致浏览器缓存文件内容问题 (#6533)
Browse files Browse the repository at this point in the history
Refs #6505
  • Loading branch information
lan-yonghui authored Sep 19, 2024
1 parent 43f95fd commit 55bec8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/views/host/file-management/preview/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 55bec8a

Please sign in to comment.