谢杰标 2 жил өмнө
parent
commit
866f0a3b79

+ 1 - 1
src/components/courseTree/CourseTree.vue

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