Commit 90fd91a3 authored by 杨梦雪's avatar 杨梦雪

查看作业 word

parent 944b2121
......@@ -705,8 +705,11 @@
.substring(url.lastIndexOf(".") + 1, url.length)
.split("?")[0];
let isWord = onlineViewType.find((type) => type === fileTypeName);
if (isWord) {
console.log(isWord,'isWord')
if (isWord=='ppt'||isWord=='pptx') {
url = "http://view.officeapps.live.com/op/view.aspx?src=" + url;
}else {
url = url;
}
window.open(url, "_blank");
}
......
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