uni.switchTab({ url: '../tabBar/center/center', success: (res) => { let page = getCurrentPages().pop(); if (!page) return; setTimeout(() => { page.onLoad();//刷新页面 }, 400) } });