chenrui пре 4 година
родитељ
комит
c63dc1bc29
1 измењених фајлова са 10 додато и 4 уклоњено
  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({