diff --git a/src/components/ReviewItem.vue b/src/components/ReviewItem.vue index 9574de9..7e3f8f6 100644 --- a/src/components/ReviewItem.vue +++ b/src/components/ReviewItem.vue @@ -177,14 +177,21 @@ export default defineComponent({ const videoid=ref(useRoute().query.id) const ifshow=ref(false) const iszk = ref(false) - onMounted(async () => { - reviewlist.value=await getcommentlist({type: 2,id: videoid.value}) - }) + const url = useRoute().path + let type = 1; + if(url == '/regime/livedetail'){ + type = 1; + }else{ + type = 2; + } + // onMounted(async () => { + // reviewlist.value=await getcommentlist({type: type,id: videoid.value}) + // }) async function refresh(e?: any){ console.log("rekload") - reviewlist.value=await getcommentlist({type: 2,id: videoid.value}) - replylist.value=await getcommentlist({type: 3,id: e}) + // reviewlist.value=await getcommentlist({type: type,id: videoid.value}) + replylist.value=await getcommentlist({type: 3,id: prop.replyid}) } const stars=ref>([]) console.log(prop.score) @@ -228,6 +235,7 @@ export default defineComponent({ } async function reload() { if(iszk.value == true){ + console.log(iszk.value,121212) iszk.value = false; if(prop.replyid){ findall(prop.replyid) @@ -236,7 +244,7 @@ export default defineComponent({ } async function del(e?: number){ - console.log(e) + console.log(e,1212) const res=await delreply(e) if(res.code != 0){ message.error(res.msg)