书评bug修复

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

View File

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