From 53f4f0add976a4b402dfc2ad8547056227156693 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期三, 06 八月 2025 17:49:53 +0800
Subject: [PATCH] 测试完成
---
/dev/null | 0
src/components/CallButton/index.vue | 11 +++--------
2 files changed, 3 insertions(+), 8 deletions(-)
diff --git "a/dist \0502\051.zip" "b/dist \0502\051.zip"
deleted file mode 100644
index ab7d81b..0000000
--- "a/dist \0502\051.zip"
+++ /dev/null
Binary files differ
diff --git a/dist.zip b/dist.zip
deleted file mode 100644
index bfff269..0000000
--- a/dist.zip
+++ /dev/null
Binary files differ
diff --git a/src/components/CallButton/index.vue b/src/components/CallButton/index.vue
index 84a1519..ca7639a 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",
+ sipUri: `${randomNum}`+"@192.168.100.6",
password: "Smartor@2023",
displayName: "Web 灏忛緳",
},
--
Gitblit v1.9.3