mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 02:46:44 +08:00
提交
This commit is contained in:
@@ -653,8 +653,9 @@ export default {
|
||||
});
|
||||
});
|
||||
//如果没有,就定位第一项内容
|
||||
if (playIndex == -1) {
|
||||
this.showRes(this.contentList[0]);
|
||||
if (playIndex === -1) {
|
||||
// this.showRes(this.contentList[0]);
|
||||
this.showRes(this.catalogTree[0].children[0])
|
||||
} else {
|
||||
this.showRes(this.contentList[playIndex]);
|
||||
}
|
||||
|
||||
@@ -26,6 +26,11 @@
|
||||
}
|
||||
},
|
||||
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();
|
||||
},
|
||||
methods:{
|
||||
|
||||
Reference in New Issue
Block a user