diff --git a/src/components/ReviewItem.vue b/src/components/ReviewItem.vue index 76693cf..f740f15 100644 --- a/src/components/ReviewItem.vue +++ b/src/components/ReviewItem.vue @@ -14,7 +14,7 @@
{{(score+'').split('.')[1]?score:score+'.0'}} {{lan.$t('fen')}}
- ={{lan.$t('suoyouhuifu')}} + {{lan.$t('suoyouhuifu')}}
diff --git a/src/components/VideoReview.vue b/src/components/VideoReview.vue index 2e12fde..9fcad07 100644 --- a/src/components/VideoReview.vue +++ b/src/components/VideoReview.vue @@ -118,13 +118,20 @@ export default defineComponent({ }, setup(prop,context){ const lan: any = useI18n(); - const reviewlist=ref({}) + const reviewlist=ref({data: []}) const commentval=ref('') const uinfo=ref({}) const replylist =ref({}) const videoid=ref(useRoute().query.id) + const url = useRoute().path onMounted(async () => { - reviewlist.value=await getcommentlist({type: 2,id: videoid.value}) + let type = 1; + if(url == '/regime/livedetail'){ + type = 1; + }else{ + type = 2; + } + reviewlist.value=await getcommentlist({type: type,id: videoid.value}) }) console.log(useRoute().query) console.log(store.state.userinfo.memberid,"userifno") diff --git a/src/views/regime/Livedetail.vue b/src/views/regime/Livedetail.vue index d8d698b..10b60d5 100644 --- a/src/views/regime/Livedetail.vue +++ b/src/views/regime/Livedetail.vue @@ -7,7 +7,7 @@ - +