onLoad() {
this.getContactData()
},
this.$uniRequest({
url:'/member/contact?id='+`${deleteitem[0].id}`,
method:'DELETE',
}).then(res=>{
console.log(res)
uni.switchTab({
url: '/pages/tabBar/contact/contact',
success: function(e) {
var page = getCurrentPages().pop();
if (page == undefined || page == null) return;
page.onLoad();
}
});
this.$forceUpdate()
})
删除成功后,操作onload里面的方法重新加载页面数据实现重新加载