mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
同步一下
This commit is contained in:
@@ -110,6 +110,14 @@
|
||||
this.$router.go(-1);
|
||||
},
|
||||
delReplySon(item,index) { //子级的删除手动删掉,调用保存接口
|
||||
//修改后,替换为下面的情况
|
||||
// apiGuestbook.del(item.id).then(res=>{
|
||||
// if(res.status==200){
|
||||
// item.replysList.splice(index,1);
|
||||
// }else{
|
||||
// this.$message.error('删除失败'+res.message);
|
||||
// }
|
||||
// });
|
||||
item.replysList.splice(index,1);
|
||||
let replysData = {
|
||||
id:item.id,
|
||||
@@ -168,12 +176,15 @@
|
||||
if(res.status == 200) {
|
||||
this.count = res.result.count;
|
||||
res.result.list.forEach(item=>{
|
||||
if(!item.replysList){
|
||||
item.replysList = [];
|
||||
}
|
||||
item.isReplys = false;
|
||||
item.authorInfo = { aid: "",name: "",orgInfo: "",avatar: "",sex: null,sign:'' }
|
||||
if(item.replys != '') {
|
||||
if(item.replys != '' && item.replys.length>10) {
|
||||
item.replysList = JSON.parse(item.replys);
|
||||
}
|
||||
//if()
|
||||
})
|
||||
this.leavingList = res.result.list;
|
||||
this.getUserData(res.result.list);
|
||||
@@ -332,4 +343,3 @@
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user