diff --git a/src/components/Portal/interactBar.vue b/src/components/Portal/interactBar.vue index f13caba0..edc97c7d 100644 --- a/src/components/Portal/interactBar.vue +++ b/src/components/Portal/interactBar.vue @@ -44,7 +44,7 @@
- {{ data.favorites? data.favorites:0}} + {{ data.favorites? data.favorites:1}}
@@ -335,7 +335,7 @@ export default { checkHas(){ if(this.type>0 && !this.readonly && this.data.id){ if(this.favorites){ - apiFavorites.has(this.type,this.data.id).then(rs=>{ + apiFavorites.has(this.type,this.data.id || this.data.courseId).then(rs=>{ if(rs.status==200 && rs.result){ this.isFavorite=true; }else{