xbx #130
@ -249,7 +249,8 @@ export default defineComponent({
|
|||||||
if(res.code != 0){
|
if(res.code != 0){
|
||||||
message.error(res.msg)
|
message.error(res.msg)
|
||||||
}
|
}
|
||||||
reload()
|
context.emit("reload")
|
||||||
|
// reload()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
:replyid="i.commentid"
|
:replyid="i.commentid"
|
||||||
@replying="reply"
|
@replying="reply"
|
||||||
@findall="findreply"
|
@findall="findreply"
|
||||||
|
@reload="getlist"
|
||||||
:ref="el => {list[j] = el}"
|
:ref="el => {list[j] = el}"
|
||||||
></ReviewItem>
|
></ReviewItem>
|
||||||
|
|
||||||
@ -126,16 +127,20 @@ export default defineComponent({
|
|||||||
const videoid=ref(useRoute().query.id)
|
const videoid=ref(useRoute().query.id)
|
||||||
const url = useRoute().path
|
const url = useRoute().path
|
||||||
const list = ref<any>([])
|
const list = ref<any>([])
|
||||||
onMounted(async () => {
|
|
||||||
let type = 1;
|
let type = 1;
|
||||||
if(url == '/regime/livedetail'){
|
if(url == '/regime/livedetail'){
|
||||||
type = 1;
|
type = 1;
|
||||||
}else{
|
}else{
|
||||||
type = 2;
|
type = 2;
|
||||||
}
|
}
|
||||||
|
async function getlist(){
|
||||||
reviewlist.value=await getcommentlist({type: type,id: videoid.value})
|
reviewlist.value=await getcommentlist({type: type,id: videoid.value})
|
||||||
|
}
|
||||||
|
onMounted(async () => {
|
||||||
|
|
||||||
|
getlist()
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(useRoute().query)
|
console.log(useRoute().query)
|
||||||
console.log(store.state.userinfo.memberid,"userifno")
|
console.log(store.state.userinfo.memberid,"userifno")
|
||||||
interface SendData{
|
interface SendData{
|
||||||
@ -194,7 +199,8 @@ export default defineComponent({
|
|||||||
reviewlist,
|
reviewlist,
|
||||||
refresh,
|
refresh,
|
||||||
lan,
|
lan,
|
||||||
list
|
list,
|
||||||
|
getlist
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user