Commit 730808d4 by 冷斌

fix bug

parent 3541547d
...@@ -246,17 +246,7 @@ ...@@ -246,17 +246,7 @@
}, },
onDownload: function (title, path) { onDownload: function (title, path) {
if ( path ) { if ( path ) {
var link = document.createElement('a'); window.location.href = path;
// 设置下载的文件名
link.download = title;
link.style.display = 'none';
//设置下载路径
link.href = path;
//触发点击
document.body.appendChild(link);
link.click();
//移除节点
document.body.removeChild(link);
this.close_yulan(); this.close_yulan();
} else { } else {
alert('当前课程无文件下载'); alert('当前课程无文件下载');
......
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