zhb 2 minggu lalu
induk
melakukan
8dc25f1fba
1 mengubah file dengan 7 tambahan dan 5 penghapusan
  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 || ''