书评bug修复

This commit is contained in:
@fawn-nine
2023-09-28 09:39:52 +08:00
parent 125e22c42f
commit 9772322df5

View File

@@ -467,11 +467,15 @@
// 显示评论框
pinglun(val){
console.log('pinglun-val', val)
if(val && val.user && val.user.name){
if(val && val.user && val.user.id && val.puser && val.puser.id){
this.Pform.name = val.user.name || ''
this.Pform.pid = val.id
this.Pform.pid = val.pid
this.Pform.puserId = val.user.id || ''
} else {
}else if(val && val.user && val.user.id){
this.Pform.name = val.user.name || ''
this.Pform.pid = val.id
this.Pform.puserId = val.user.id || ''
}else {
// this.pinglunId = val || null
this.Pform.pid = ''
this.Pform.puserId = ''
@@ -499,6 +503,7 @@
pid: this.Pform.pid,
puserId: this.Pform.puserId,
}
console.log(data,'提交的评论id')
this.$http
.post("forum/articles/pushMsgToForum", data)
.then(res => {