Browse Source

增加弹窗

wangxy 6 months ago
parent
commit
c9c319c14c
1 changed files with 3 additions and 2 deletions
  1. 3 2
      components/custom-tabbar/custom-tabbar.vue

+ 3 - 2
components/custom-tabbar/custom-tabbar.vue

@@ -77,7 +77,9 @@
 			},
 
 			switchTab(path, index) {
-				this.currentTab = index;
+				if (path !== '/pages/game/index') {
+					this.currentTab = index;
+				}
 				if (getUserIdentity() == 'Visitor') {
 					if (path === '/pages/game/index') {
 						this.$refs.youkeDialogRef.handleShow();
@@ -108,7 +110,6 @@
 
 			this.currentTab  =this.currentTabNumber
 		}
-
 	}
 </script>