Commit 730808d4 by 冷斌

fix bug

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