余尚辉 3 kuukautta sitten
vanhempi
commit
e400a677a2
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      src/store/modules/voice.js

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

@@ -154,8 +154,9 @@ const useVoiceStore = defineStore('voice', () => {
   // 卸载实例
   const unInit = async () => {
     if ( HS_CTI ) {
+      const res = await HS_CTI.unInit();
       HS_CTI = null;
-      return await HS_CTI.unInit();
+      return res
     }
   }