uniapp 中 一般跳转到 tabar 页面 页面不会 刷新
要想页面 刷新
uni.switchTab({
url: '../../pages/community/community',
success() {
let page = getCurrentPages().pop();
if (page == undefined || page == null) return;
page.onLoad();
}
})
跳转的页面 会 走 onload 函数 页面就会刷新