书评bug修复
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user