修改跳转逻辑

This commit is contained in:
weinan2087
2022-10-26 16:44:30 +08:00
parent 1478f07e78
commit 79f12ecd3c

View File

@@ -150,7 +150,7 @@ import apiUser from "@/api/system/user.js";
toFollow(item) { toFollow(item) {
apiFollow.save(item.userFollow.aid).then(res=>{ apiFollow.save(item.userFollow.aid).then(res=>{
if(res.status == 200) { if(res.status == 200) {
// this.$message.success("关注成功"); // this.$message.success("关注成功");
this.getMyPage(); this.getMyPage();
} else { } else {
this.$message.error(res.message); this.$message.error(res.message);
@@ -158,10 +158,10 @@ import apiUser from "@/api/system/user.js";
}) })
}, },
resetActive(){ resetActive(){
this.active=1; // this.active=1;
this.follow={list:[],count:0,pageIndex:1,pageSize:10}, this.follow={list:[],count:0,pageIndex:1,pageSize:10},
this.followMe={list:[],count:0,pageIndex:1,pageSize:10}, this.followMe={list:[],count:0,pageIndex:1,pageSize:10},
this.tagTab(1); this.tagTab(this.active);
}, },
cancel(item,idx) { cancel(item,idx) {
let $this=this; let $this=this;