mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-22 17:26:43 +08:00
提交修改
This commit is contained in:
@@ -103,7 +103,6 @@ export default {
|
||||
query.sysCreateAid = this.userInfo.aid;
|
||||
apiArticle.myPageList(query).then(res => {
|
||||
if (res.status == 200) {
|
||||
console.log(res)
|
||||
this.total = res.result.count;
|
||||
this.pageData.list = res.result.list;
|
||||
if(this.pageData.list.length!=0){
|
||||
|
||||
@@ -283,11 +283,21 @@ export default {
|
||||
this.$message.error("回复失败");
|
||||
})
|
||||
} else {
|
||||
apiQa.saveComment({
|
||||
parentId:this.replayContent.parentId,
|
||||
content:this.replayContent.content,
|
||||
commentId:this.replayContent.id
|
||||
}).then(res=>{
|
||||
//默认是一级评论,2级数据
|
||||
let replyData={
|
||||
replayAid: this.replayContent.sysCreateAid,
|
||||
replayName: this.replayContent.sysCreateBy,
|
||||
content: this.replayContent.content,
|
||||
parentId: this.replayContent.id,
|
||||
commentId: "",
|
||||
clevel: 2
|
||||
}
|
||||
if(this.replayContent.clevel==2){ //当前是一级评论
|
||||
replyData.commentId=this.replayContent.id;
|
||||
replyData.clevel=3;
|
||||
}
|
||||
|
||||
apiQa.saveComment(replyData).then(res=>{
|
||||
if(res.status==200){
|
||||
this.$message.success("回复成功");
|
||||
this.shareShow = false;
|
||||
|
||||
Reference in New Issue
Block a user