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