mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 11:56:44 +08:00
提交
This commit is contained in:
@@ -653,8 +653,9 @@ export default {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
//如果没有,就定位第一项内容
|
//如果没有,就定位第一项内容
|
||||||
if (playIndex == -1) {
|
if (playIndex === -1) {
|
||||||
this.showRes(this.contentList[0]);
|
// this.showRes(this.contentList[0]);
|
||||||
|
this.showRes(this.catalogTree[0].children[0])
|
||||||
} else {
|
} else {
|
||||||
this.showRes(this.contentList[playIndex]);
|
this.showRes(this.contentList[playIndex]);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted(){
|
mounted(){
|
||||||
|
let protocol=window.location.protocol;
|
||||||
|
let idx=this.fileBaseUrl.indexOf('://');
|
||||||
|
if(!this.fileBaseUrl.startsWith(protocol)){
|
||||||
|
this.fileBaseUrl=protocol+this.fileBaseUrl.substring(idx+1);
|
||||||
|
}
|
||||||
this.loadData();
|
this.loadData();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
|||||||
Reference in New Issue
Block a user