Commit 9ba0ac63 by zhangleyuan

feat:处理永中的预览的跳转

parent 3bd26be0
...@@ -254,7 +254,7 @@ class ManageCoursewareModal extends React.Component { ...@@ -254,7 +254,7 @@ class ManageCoursewareModal extends React.Component {
htmlTitle:item.fileName htmlTitle:item.fileName
} }
const previewSign = await BaseService.getYoZoSign(previewParams); const previewSign = await BaseService.getYoZoSign(previewParams);
const url = `${YZ_PREVIEW_URL}?fileVersionId=${item.fileVersionId}&appId=${YZ_APPId}&sign=${previewSign}&htmlTitle=${item.fileNam}` const url = `${YZ_PREVIEW_URL}?fileVersionId=${item.fileVersionId}&appId=${YZ_APPId}&sign=${previewSign}&htmlTitle=${item.fileName}`
const a = document.createElement('a'); const a = document.createElement('a');
document.body.appendChild(a); document.body.appendChild(a);
a.setAttribute('href', url); a.setAttribute('href', url);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment