Browse Source

fix(tabbar): 注释掉授权状态检查逻辑

- 注释掉了 tabbar.vue 中的授权状态检查代码
- 注释掉了 tabbar_common.vue 中的授权状态检查代码
- 移除了相关的登录处理和状态设置逻辑
- 保留了标签页切换的核心功能
mws 1 month ago
parent
commit
023d4f65b1
2 changed files with 12 additions and 12 deletions
  1. 6 6
      components/tabbar.vue
  2. 6 6
      components/tabbar_common.vue

+ 6 - 6
components/tabbar.vue

@@ -74,14 +74,14 @@
 			},
 			onTabChange(index) {
 				//判断是否已经授权
-				if(uni.getStorageSync('Authorization-status')){
+				// if(uni.getStorageSync('Authorization-status')){
 					this.handleTabSwitch(index);
 					return;
-				}
-				this.handleLogin();
-				this.show = true;
-				this.selectedIndex = index;
-				return;
+				// }
+				// this.handleLogin();
+				// this.show = true;
+				// this.selectedIndex = index;
+				// return;
 	
 			},
 			async handleLogin() {

+ 6 - 6
components/tabbar_common.vue

@@ -78,13 +78,13 @@
 			},
 			onTabChange(index) {
 				//判断是否已经授权
-				if (uni.getStorageSync('Authorization-status')) {
+				// if (uni.getStorageSync('Authorization-status')) {
 					this.handleTabSwitch(index);
-					return;
-				}
-				this.handleLogin();
-				this.showTabbar = true;
-				this.selectedIndex = index;
+				// 	return;
+				// }
+				// this.handleLogin();
+				// this.showTabbar = true;
+				// this.selectedIndex = index;
 				return;
 
 			},