Kaynağa Gözat

fix: 修正undefined问题

ChenYangfan 6 yıl önce
ebeveyn
işleme
e523b43f1d

+ 0 - 4
src/views/student/components/StudentCourseDetail.vue

@@ -66,10 +66,6 @@ export default {
   },
   },
   methods: {
   methods: {
     init() {
     init() {
-      this.getCourse()
-      this.fetchNotices()
-    },
-    getCourse () {
       getOneCourse({ courseId: this.$route.params.courseId })
       getOneCourse({ courseId: this.$route.params.courseId })
         .then(res => {
         .then(res => {
           this.course = res
           this.course = res