|
@@ -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>
|