提交 3a0b8158 编写于 作者: zhf's avatar zhf

fix: 修复预览路径不正确异常

上级 0ea6d8b6
......@@ -581,8 +581,8 @@ export default class DiskFileUpload extends Vue {
const downloadUrl = Environment.BaseUrl + (window as any).Environment.ExportFile + '/' + id + '/' + name;
const previewFileUrl = Environment.previewFileUrl;
if (previewFileUrl) {
const url = encodeURIComponent(encode(`${window.location.origin}${downloadUrl}`));
// const url = encodeURIComponent(encode(`${window.location.origin}${downloadUrl}?fullfilename=${name}`));
// const url = encodeURIComponent(encode(`${window.location.origin}${downloadUrl}`));
const url = encodeURIComponent(encode(`${window.location.origin}${downloadUrl}?fullfilename=${encode(name)}`));
this.dialogTitle = name;
this.showDialog = true;
this.iframeUrl = `${previewFileUrl}/onlinePreview?url=${url}`;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册