@@ -89,11 +89,17 @@
if (_this.path === '/pages/index/index' || _this.lanuch) {
uni.reLaunch({
url: _this.path
- });
+ })
} else {
- uni.redirectTo({
- url: _this.path
+ if (_this.path === '/pages/cleared/index' || _this.path === '/pages/userCenter/index') { // tabbar页面
+ uni.switchTab({
+ url: _this.path
+ } else {
+ uni.redirectTo({
+ }
}
uni.showToast({