diff --git a/src/components/HomePage/courseList.vue b/src/components/HomePage/courseList.vue
index 9323e0db..e6a4baca 100644
--- a/src/components/HomePage/courseList.vue
+++ b/src/components/HomePage/courseList.vue
@@ -84,10 +84,10 @@
this.$emit('hideIndex',id)
},
jumpDetail(data) {
- if(!data.id){
+ if(!data.courseId){
return;
}
- this.$router.push({ path: '/course/detail?id=', query: { id: data.id } });
+ this.$router.push({ path: '/course/detail?id=', query: { id: data.courseId } });
}
}
}
diff --git a/src/views/Index.vue b/src/views/Index.vue
index 869b81bc..6ea849d3 100644
--- a/src/views/Index.vue
+++ b/src/views/Index.vue
@@ -4,12 +4,12 @@