余尚辉 2 months ago
parent
commit
ea207fffd5
4 changed files with 18 additions and 7 deletions
  1. 12 0
      hs-cti.es6.umd.prod.js
  2. 2 2
      index.html
  3. 3 3
      src/layout/components/HeaderGroup/index.vue
  4. 1 2
      src/store/modules/voice.js

File diff suppressed because it is too large
+ 12 - 0
hs-cti.es6.umd.prod.js


+ 2 - 2
index.html

@@ -12,9 +12,9 @@
   <script src="./public/SIP.min.js" type="text/javascript"></script> -->
   <script type="text/javascript" src="https://static.fuxicarbon.com/hs-cti/socket.io.min.js"></script>
   <script type="text/javascript" src="https://static.fuxicarbon.com/hs-cti/SIP.min.js"></script>
-  <script type="text/javascript" src="https://static.fuxicarbon.com/hs-cti/hs-cti.es6.umd.prod.js"></script>
+  <!-- <script type="text/javascript" src="https://static.fuxicarbon.com/hs-cti/hs-cti.es6.umd.prod.js"></script> -->
   <!-- <script src="http://static.fuxicarbon.com/hs-cti/hs-cti.es6.umd.prod.js" type="text/javascript"></script> -->
-   <!-- <script type="text/javascript" src="/hs-cti.es6.umd.prod.js"></script> -->
+   <script type="text/javascript" src="/hs-cti.es6.umd.prod.js"></script>
   <link rel="icon" href="/favicon.ico">
   <title>佳木斯智能语音客服</title>
   <!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->

+ 3 - 3
src/layout/components/HeaderGroup/index.vue

@@ -96,9 +96,9 @@ const logout = () => {
      * AGENTSTATUS : 
      * 0 未登录 1 置忙 2 置闲
      * */ 
-     voiceStore.getAgentStatus();
-      console.log( "退出 坐席状态", voiceStore.AGENTSTATUS );
-      console.log( "退出 系统状态", voiceStore.HSCTIERRORCODE );
+    //  voiceStore.getAgentStatus();
+      // console.log( "退出 坐席状态", voiceStore.AGENTSTATUS );
+      // console.log( "退出 系统状态", voiceStore.HSCTIERRORCODE );
       // && voiceStore.AGENTSTATUS != 0 && !([100001, 100002].includes(Number(voiceStore.HSCTIERRORCODE)))
     if ( voiceStore.isAuthPane ) {
       await voiceStore.unInit();

+ 1 - 2
src/store/modules/voice.js

@@ -165,8 +165,7 @@ const useVoiceStore = defineStore('voice', () => {
 
   // 卸载实例
   const unInit = async () => {
-    await getAgentStatus();
-    AGENTSTATUS.value != 0 && await HS_CTI.unInit();
+    await HS_CTI.unInit();
   }
 
   // 下面开始事件监听

Some files were not shown because too many files changed in this diff