From 6f1e7a63fa6afc261ba2247bf1d56f59dbb9f4c9 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 07 八月 2025 17:29:46 +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..93ff496 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() * 11) + 1000, // 鐢熸垚 1000-1010 鐨勯殢鏈烘暣鏁� 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