zhb 4 주 전
부모
커밋
8dc25f1fba
1개의 변경된 파일7개의 추가작업 그리고 5개의 파일을 삭제
  1. 7 5
      App.vue

+ 7 - 5
App.vue

@@ -21,15 +21,11 @@ const globalStore = useGlobalStore()
 onLoad((options) => {
 	updateRoute();
 	// checkUpdate()
-  setTimeout(()=>{
-    handleSignupRoute(options)
-
-  },100)
 })
 onShow((options) => {
 	updateRoute();
 	// checkUpdate()
-
+    handleSignupRoute(options)
 })
 
 // App.vue 或你的初始化文件中
@@ -233,6 +229,12 @@ const handleSignupRoute = (options) => {
 		return
 	}
 
+	// 已在登录页注册 Tab(含代理参数),无需重复 reLaunch
+	const hashPath = getHashPath()
+	if (hashPath === '/pages/login/index' && String(query.activeTab) === '2') {
+		return
+	}
+
 	// 获取参数
 	const id = query.id || query.agentId || query.p1 || ''
 	const subId = query.subId || query.w || query.p2 || ''