简单记录一下:

1
2
3
4
5
6
7
8
uni.switchTab({
url:'/pages/my/index',
success: (res) => {
let page = getCurrentPages().pop();
if (page == undefined || page == null) return;
page.onLoad();
}
})