关注分页未重置 的问题

This commit is contained in:
daihh
2022-11-23 18:11:10 +08:00
parent 41ced31abf
commit 4484f8e462

View File

@@ -163,6 +163,7 @@ import apiUser from "@/api/system/user.js";
this.$router.push({path:this.$xpage.getHomePath(ava.aid)})
},
myCancelFollow(aid,delIdx){ //我关注的,取消关注操作
this.followMe.pageIndex=1;
this.getMyPage();
// console.log(aid,delIdx,'参数值');
// //先从我关注的人中员列表中移除
@@ -187,6 +188,7 @@ import apiUser from "@/api/system/user.js";
},
myAddFollow(data){ //我关注的,添加关注
this.followMe.pageIndex=1;
this.getMyPage();
//检查“关注我的”人列表中是否有此人,有此设置设置关注状态
// this.followMe.list.some((item,idx)=>{
@@ -200,6 +202,7 @@ import apiUser from "@/api/system/user.js";
},
myFollowAdd(data) { //关注我的,添加关注
//直接刷新“我关注的”人员列表
this.follow.pageIndex=1;
this.getPage();
// 因为转移到新的列表,所以这里需要转化一下
// let check=this.follow.list.some((item,idx)=>{
@@ -217,6 +220,7 @@ import apiUser from "@/api/system/user.js";
},
myFollowCancel(aid){ //关注我的,取消关注
//同步,从我关注的列表中移除
this.follow.pageIndex=1;
this.getPage();
//console.log('移除用户:'+aid);
// let delIdx=-1;