mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-09 19:06:43 +08:00
【课程学习】笔记的回复,点击“回复”按钮后,点击几次会出现几次回复
This commit is contained in:
@@ -188,6 +188,7 @@
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
replyLoading:false,
|
||||||
radio:1,
|
radio:1,
|
||||||
value:false,
|
value:false,
|
||||||
sex:null,
|
sex:null,
|
||||||
@@ -479,6 +480,10 @@
|
|||||||
this.replyInfo.parentId='';
|
this.replyInfo.parentId='';
|
||||||
},
|
},
|
||||||
submitReply(comment){
|
submitReply(comment){
|
||||||
|
if(this.replyLoading) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.replyLoading = true;
|
||||||
this.replyInfo.content = this.replyInfo.content.trim();
|
this.replyInfo.content = this.replyInfo.content.trim();
|
||||||
if(this.replyInfo.content==''){
|
if(this.replyInfo.content==''){
|
||||||
return;
|
return;
|
||||||
@@ -492,6 +497,7 @@
|
|||||||
// comment.replyList=[];
|
// comment.replyList=[];
|
||||||
// }
|
// }
|
||||||
apiComment.add(this.replyInfo).then(res=>{
|
apiComment.add(this.replyInfo).then(res=>{
|
||||||
|
this.replyLoading = false;
|
||||||
if(res.status==200){
|
if(res.status==200){
|
||||||
res.result.sex = null;
|
res.result.sex = null;
|
||||||
res.result.isAll=false;
|
res.result.isAll=false;
|
||||||
|
|||||||
Reference in New Issue
Block a user