From 209b2f7b9a0b2abc4043f22bed9b06ab2650ba59 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期四, 07 八月 2025 10:03:31 +0800
Subject: [PATCH] 测试完成

---
 src/components/CallButton/index.vue |   13 ++++---------
 1 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/src/components/CallButton/index.vue b/src/components/CallButton/index.vue
index 84a1519..55db2ca 100644
--- a/src/components/CallButton/index.vue
+++ b/src/components/CallButton/index.vue
@@ -19,13 +19,7 @@
     </button>
 
     <!-- 鎸傛柇鎸夐挳 -->
-    <button
-      v-if="isCalling"
-      class="end-call-btn"
-      @click="endCall"
-    >
-      鎸傛柇
-    </button>
+    <button v-if="isCalling" class="end-call-btn" @click="endCall">鎸傛柇</button>
 
     <!-- 闊抽鍏冪礌锛堥殣钘忥級 -->
     <audio id="remoteAudio" autoplay></audio>
@@ -48,9 +42,10 @@
       callStatus: 'idle', // idle, calling, connected, ended
       sipStatus: "鏈繛鎺�",
       sipStatusClass: "status-disconnected",
+     randomNum = Math.floor(Math.random() * 21) + 1000, // 鐢熸垚 1000-1020 鐨勯殢鏈烘暣鏁�
       sipConfig: {
-        wsUrl: "wss://192.168.100.6:7443",
-        sipUri: "1000@192.168.100.6",
+        wsUrl: "wss://192.168.10.124:7443",
+        sipUri: `${randomNum}`+"@192.168.10.124",
         password: "Smartor@2023",
         displayName: "Web 灏忛緳",
       },

--
Gitblit v1.9.3