您的位置:首页 > 其它

20180308.bulbBright后续改进:’关注和粉丝‘功能BUG修复

2018-03-16 18:20 309 查看

20180308.bulbBright后续改进:’关注和粉丝‘功能BUG修复

作者: chenhaoting 
时间: 2018-03-08 
分类: 科研项目日志 
评论
日常检查项目BUG,发现“关注和粉丝”用户取消关注或移除粉丝后存在翻页无法及时更新信息的BUG,将发送异步请求的代码加入翻页的函数后得到了修复。示例代码:
turn_to_page(index){
this.items.pop();
this.items.pop();
this.items.pop();
this.items.pop();
this.items.pop();
this.$http.post('/api/UserManager/ReadFans?name='+sessionStorage.getItem('login_user'))
.then((response)=>{

if(response.data.result){

sessionStorage.setItem('fans',response.data.result);

}
this.arr=sessionStorage.getItem("fans").split(',');
this.b=this.$refs.menuItem[index].innerText
for(this.a=this.b*5-5;this.a<this.b*5;this.a++){
if(this.arr[this.a]){
this.items.push({
username:this.arr[this.a],
})
}
}

})
.catch(function(err){
console.log(err);
});
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐