From 526db8f972c2a8d822c4d05bb1b73458dc221291 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Mon, 09 Feb 2026 15:58:09 +0800
Subject: [PATCH] feat:调整

---
 applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue |   30 +++++++++++++++---------------
 1 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue b/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
index 8ad9923..d918e96 100644
--- a/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
+++ b/applications/mobile-web-view/src/appPages/voiceCallDetail/index.vue
@@ -76,26 +76,26 @@
 	}
 	
 	// 2. 同时保留原有的URL参数解析逻辑,作为备选
-	// const url = new URL(window.location.href);
-	// const paramsStr = url.searchParams.get('params');
-	// if (paramsStr) {
-	// 	try {
-	// 		const params = JSON.parse(decodeURIComponent(paramsStr));
-	// 		if (params.peerUid) {
-	// 			peerUid.value = String(params.peerUid);
-	// 			log('🔗 从URL参数获取peerUid:', params.peerUid);
-	// 		}
-	// 	} catch (e) {
-	// 		log('❌ 解析URL参数失败:', String(e));
-	// 	}
-	// }
+	const url = new URL(window.location.href);
+	const paramsStr = url.searchParams.get('params');
+	if (paramsStr) {
+		try {
+			const params = JSON.parse(decodeURIComponent(paramsStr));
+			if (params.peerUid) {
+				peerUid.value = String(params.peerUid);
+				log('🔗 从URL参数获取peerUid:', params.peerUid);
+			}
+		} catch (e) {
+			log('❌ 解析URL参数失败:', String(e));
+		}
+	}
 }
 
 // 从URL参数或本地存储获取用户ID
 const getUserIdFromStorage = () => {
 	// 从url获取用户id
-	const contact = JSON.parse(decodeURIComponent(receiveParameters.value)).userId
-	console.log('从url获取用户id',contact)
+	const contact = JSON.parse(decodeURIComponent(receiveParameters.value))
+	console.log('从url获取用户id',contact?.userId)
 	// 从本地获取用户id
 	const userId = localStorage.getItem('userId') || sessionStorage.getItem('userId')
 	console.log('从本地存储获取userId:', userId)

--
Gitblit v1.9.3