修复了某些错误

This commit is contained in:
luyuan 2020-11-12 15:55:41 +08:00
parent ad9707ddbe
commit 06ecc8e678
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -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)