修复了某些错误
This commit is contained in:
parent
ad9707ddbe
commit
06ecc8e678
@ -177,14 +177,21 @@ export default defineComponent({
|
|||||||
const videoid=ref(useRoute().query.id)
|
const videoid=ref(useRoute().query.id)
|
||||||
const ifshow=ref(false)
|
const ifshow=ref(false)
|
||||||
const iszk = ref(false)
|
const iszk = ref(false)
|
||||||
onMounted(async () => {
|
const url = useRoute().path
|
||||||
reviewlist.value=await getcommentlist({type: 2,id: videoid.value})
|
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){
|
async function refresh(e?: any){
|
||||||
console.log("rekload")
|
console.log("rekload")
|
||||||
reviewlist.value=await getcommentlist({type: 2,id: videoid.value})
|
// reviewlist.value=await getcommentlist({type: type,id: videoid.value})
|
||||||
replylist.value=await getcommentlist({type: 3,id: e})
|
replylist.value=await getcommentlist({type: 3,id: prop.replyid})
|
||||||
}
|
}
|
||||||
const stars=ref<Array<number>>([])
|
const stars=ref<Array<number>>([])
|
||||||
console.log(prop.score)
|
console.log(prop.score)
|
||||||
@ -228,6 +235,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
async function reload() {
|
async function reload() {
|
||||||
if(iszk.value == true){
|
if(iszk.value == true){
|
||||||
|
console.log(iszk.value,121212)
|
||||||
iszk.value = false;
|
iszk.value = false;
|
||||||
if(prop.replyid){
|
if(prop.replyid){
|
||||||
findall(prop.replyid)
|
findall(prop.replyid)
|
||||||
@ -236,7 +244,7 @@ export default defineComponent({
|
|||||||
|
|
||||||
}
|
}
|
||||||
async function del(e?: number){
|
async function del(e?: number){
|
||||||
console.log(e)
|
console.log(e,1212)
|
||||||
const res=await delreply(e)
|
const res=await delreply(e)
|
||||||
if(res.code != 0){
|
if(res.code != 0){
|
||||||
message.error(res.msg)
|
message.error(res.msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user