Merge pull request '修复了某些错误' (#129) from xbx into master
Reviewed-on: http://git.luyuan.tk/luyuan/beelink/pulls/129
This commit is contained in:
commit
b694dc1a1c
@ -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<Array<number>>([])
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user