|
@@ -1137,7 +1137,7 @@ export default {
|
|
},
|
|
},
|
|
activeCourseId() {
|
|
activeCourseId() {
|
|
let courseId = this.query.courseId;
|
|
let courseId = this.query.courseId;
|
|
- if (!courseId) {
|
|
|
|
|
|
+ if (!courseId&&this.treeList.length) {
|
|
courseId = this.treeList[0].courseId;
|
|
courseId = this.treeList[0].courseId;
|
|
}
|
|
}
|
|
return courseId;
|
|
return courseId;
|