关注分页未重置 的问题

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