chenrui 4 yıl önce
ebeveyn
işleme
c63dc1bc29
1 değiştirilmiş dosya ile 10 ekleme ve 4 silme
  1. 10 4
      pages/login/login.vue

+ 10 - 4
pages/login/login.vue

@@ -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({
+											url: _this.path
+										})
+									}
 								}
 							} else {
 								uni.showToast({