余尚辉 1 mesiac pred
rodič
commit
15dad213e7

+ 1 - 1
src/components/SizeSelect/index.vue

@@ -32,7 +32,7 @@ const sizeOptions = ref([
 function handleSetSize(size) {
   proxy.$modal.loading("正在设置布局大小,请稍候...");
   appStore.setSize(size);
-  setTimeout("window.location.reload()", 1000);
+  // setTimeout("window.location.reload()", 1000);
 }
 </script>
 

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

@@ -102,7 +102,7 @@ const logout = () => {
     cancelButtonText: '取消',
     type: 'warning'
   }).then(async () => {
-    sessionStorage.removeItem('VOICE_STATUS')
+   
   /**
      * HSCTIERRORCODE :
      * 100001: SDK 状态不可用,CTIStatus 的状态为 Terminated
@@ -116,6 +116,7 @@ const logout = () => {
       // console.log( "退出 系统状态", voiceStore.HSCTIERRORCODE );
       // && voiceStore.AGENTSTATUS != 0 && !([100001, 100002].includes(Number(voiceStore.HSCTIERRORCODE)))
     if ( voiceStore.isAuthPane ) {
+      sessionStorage.removeItem('VOICE_STATUS')
       await voiceStore.unInit();
     }
     userStore.logOut().then(() => {
@@ -125,13 +126,7 @@ const logout = () => {
 }
 
 onMounted( () => {
-  if ( voiceStore.isAuthPane ) {
-    setTimeout(async() => {
-      // await voiceStore.getAgentStatus();
-      // voiceStore.AGENTSTATUS 
-      
-    }, 2000)
-  }
+ 
 })
 
 </script>

+ 1 - 1
src/layout/components/Settings/index.vue

@@ -134,7 +134,7 @@ function saveSetting() {
 function resetSetting() {
   proxy.$modal.loading("正在清除设置缓存并刷新,请稍候...");
   localStorage.removeItem("layout-setting")
-  setTimeout("window.location.reload()", 1000)
+  // setTimeout("window.location.reload()", 1000)
 }
 
 function openSetting() {