From f08b755cd2db76f99b96355e8e1f60dda50fffdb Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期二, 02 十二月 2025 15:22:38 +0800
Subject: [PATCH] 测试完成

---
 src/api/AiCentre/phoneCall.js                     |    2 +-
 src/views/followvisit/record/detailpage/index.vue |    2 --
 src/components/CallButton/index.vue               |    6 ++++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/api/AiCentre/phoneCall.js b/src/api/AiCentre/phoneCall.js
index f2f5124..a542402 100644
--- a/src/api/AiCentre/phoneCall.js
+++ b/src/api/AiCentre/phoneCall.js
@@ -10,7 +10,7 @@
     },
   });
 }
-// 鏌ヨ澶栭儴鎮h�呰〃
+// 鏇存柊鍒嗙骇鍙�
 export function CallsetState(data) {
   return request({
     url: "/smartor/ServiceTelInfo/setState",
diff --git a/src/components/CallButton/index.vue b/src/components/CallButton/index.vue
index c839632..0306480 100644
--- a/src/components/CallButton/index.vue
+++ b/src/components/CallButton/index.vue
@@ -92,7 +92,10 @@
     sipService.onStatusChange = (status) => {
       this.sipStatus = status.text;
       this.sipStatusClass = `status-${status.type}`;
-
+      // 娉ㄥ唽鎴愬姛
+      if (status.type === "registered") {
+        this.startCallsetState();
+      }
       // 澶勭悊娉ㄥ唽澶辫触鍜屾柇寮�杩炴帴鎯呭喌
       if (status.type === "failed" || status.type === "disconnected") {
         this.overCallsetState(); // 閲婃斁鍒嗘満鍙�
@@ -160,7 +163,6 @@
         this.randomID = res.data[0].id;
         // 姝g‘璁剧疆 sipUri
         this.sipConfig.sipUri = `${this.randomNum}@192.168.10.124`;
-        this.startCallsetState();
       } catch (error) {
         console.error("鑾峰彇鍒嗘満鍙峰け璐�:", error);
         // this.updateStatus("failed", "鑾峰彇鍒嗘満鍙峰け璐�");
diff --git a/src/views/followvisit/record/detailpage/index.vue b/src/views/followvisit/record/detailpage/index.vue
index 050a512..f41424d 100644
--- a/src/views/followvisit/record/detailpage/index.vue
+++ b/src/views/followvisit/record/detailpage/index.vue
@@ -1409,8 +1409,6 @@
   methods: {
     // 鑾峰彇涓婚鏍峰紡绫�
     getTopicClass(item) {
-      console.log(item.isabnormal, "111");
-
       // 鏍规嵁鐘舵�佸�艰繑鍥炲搴旂殑鏍峰紡绫�
       if (item.isabnormal == 1) {
         return "scriptTopic-isabnormal"; // 寮傚父 - 绾㈣壊

--
Gitblit v1.9.3