|
@@ -43,9 +43,8 @@ const handlePopoverItem = async ({ state, label }) => {
|
|
|
|
|
|
workbenchApi.getSeatsByUser({ userId: userStore.id }).then(async({ data }) => {
|
|
workbenchApi.getSeatsByUser({ userId: userStore.id }).then(async({ data }) => {
|
|
if (!data) return;
|
|
if (!data) return;
|
|
- voiceStore.HS_CTI_INSTANCE(data.outId);
|
|
|
|
- setTimeout(async () => {
|
|
|
|
- await voiceStore.getAgentStatus();
|
|
|
|
|
|
+ await useVoice.HS_CTI_INSTANCE(data.outId);
|
|
|
|
+ await voiceStore.getAgentStatus();
|
|
// console.log( "坐席状态 下", voiceStore.AGENTSTATUS );
|
|
// console.log( "坐席状态 下", voiceStore.AGENTSTATUS );
|
|
// console.log( "系统状态 下", voiceStore.HSCTIERRORCODE );
|
|
// console.log( "系统状态 下", voiceStore.HSCTIERRORCODE );
|
|
// if ( !([100001, 100002].includes( Number(voiceStore.HSCTIERRORCODE)) ) ) {
|
|
// if ( !([100001, 100002].includes( Number(voiceStore.HSCTIERRORCODE)) ) ) {
|
|
@@ -55,7 +54,6 @@ const handlePopoverItem = async ({ state, label }) => {
|
|
} else {
|
|
} else {
|
|
voiceStore.systemState = false;
|
|
voiceStore.systemState = false;
|
|
}
|
|
}
|
|
- }, 2000);
|
|
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
/**
|
|
/**
|