谢杰标 2 년 전
부모
커밋
866f0a3b79
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/courseTree/CourseTree.vue

+ 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;