mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
pdf显示问题
This commit is contained in:
@@ -146,7 +146,6 @@ export default {
|
||||
},
|
||||
//加载页面
|
||||
loadInitPdf(url) {
|
||||
if(url && url.indexOf('.pdf')>-1){
|
||||
let loadingTask = pdf.createLoadingTask(url);
|
||||
this.src=loadingTask;
|
||||
loadingTask.promise.then((pdf) =>{
|
||||
@@ -159,8 +158,6 @@ export default {
|
||||
}).catch((err) =>{
|
||||
this.$message.error("加载内容失败,请联系管理员");
|
||||
});
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
handleScroll() {
|
||||
|
||||
Reference in New Issue
Block a user