|
@@ -77,8 +77,8 @@
|
|
><span class="user-info-box-content-item-content">{{ userInfos.orgName }}</span>
|
|
><span class="user-info-box-content-item-content">{{ userInfos.orgName }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="mt5 flex-between">
|
|
<div class="mt5 flex-between">
|
|
- <el-button link type="primary" @click="onChangePwd"> <SvgIcon name="ele-Lock" class="mr3"/>修改密码</el-button>
|
|
|
|
- <el-button link type="primary" @click="onLogOut"><SvgIcon name="iconfont icon-tuichu" class="mr3"/>退出登录</el-button>
|
|
|
|
|
|
+ <el-button link type="primary" @click="onChangePwd"> <SvgIcon name="ele-Lock" class="mr3" />修改密码</el-button>
|
|
|
|
+ <el-button link type="primary" @click="onLogOut"><SvgIcon name="iconfont icon-tuichu" class="mr3" />退出登录</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</el-popover>
|
|
</el-popover>
|
|
@@ -341,10 +341,35 @@ const onLogOut = () => {
|
|
},
|
|
},
|
|
})
|
|
})
|
|
.then(() => {
|
|
.then(() => {
|
|
- callCenterLogout().then(()=>{
|
|
|
|
- console.log('呼叫中心ws退出成功');
|
|
|
|
- signalR.leaveAllGroupAndStop().then(()=>{
|
|
|
|
- console.log('业务中心ws退出成功');
|
|
|
|
|
|
+ callCenterLogout()
|
|
|
|
+ .then(() => {
|
|
|
|
+ console.log('呼叫中心ws退出成功');
|
|
|
|
+ signalR
|
|
|
|
+ .leaveAllGroupAndStop()
|
|
|
|
+ .then(() => {
|
|
|
|
+ // 退出所有组
|
|
|
|
+ console.log('业务中心ws退出成功');
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ // 清除缓存/token等
|
|
|
|
+ Local.clear();
|
|
|
|
+ Session.clear();
|
|
|
|
+ Cookie.clear();
|
|
|
|
+ // 使用 reload 时,不需要调用 resetRoute() 重置路由
|
|
|
|
+ window.location.reload();
|
|
|
|
+ }, 300);
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ // 清除缓存/token等
|
|
|
|
+ Local.clear();
|
|
|
|
+ Session.clear();
|
|
|
|
+ Cookie.clear();
|
|
|
|
+ // 使用 reload 时,不需要调用 resetRoute() 重置路由
|
|
|
|
+ window.location.reload();
|
|
|
|
+ }, 300);
|
|
|
|
+ });
|
|
|
|
+ })
|
|
|
|
+ .catch(() => {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
// 清除缓存/token等
|
|
// 清除缓存/token等
|
|
Local.clear();
|
|
Local.clear();
|
|
@@ -353,10 +378,7 @@ const onLogOut = () => {
|
|
// 使用 reload 时,不需要调用 resetRoute() 重置路由
|
|
// 使用 reload 时,不需要调用 resetRoute() 重置路由
|
|
window.location.reload();
|
|
window.location.reload();
|
|
}, 300);
|
|
}, 300);
|
|
- }) // 退出所有组
|
|
|
|
- }).catch(()=>{
|
|
|
|
-
|
|
|
|
- })
|
|
|
|
|
|
+ });
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
return;
|
|
return;
|
|
@@ -391,7 +413,7 @@ const onLogOut = () => {
|
|
},
|
|
},
|
|
})
|
|
})
|
|
.then(async () => {
|
|
.then(async () => {
|
|
- signalR.leaveAllGroupAndStop().then(()=>{
|
|
|
|
|
|
+ signalR.leaveAllGroupAndStop().then(() => { // 退出所有组
|
|
console.log('业务中心ws退出成功');
|
|
console.log('业务中心ws退出成功');
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
// 清除缓存/token等
|
|
// 清除缓存/token等
|
|
@@ -401,7 +423,16 @@ const onLogOut = () => {
|
|
// 使用 reload 时,不需要调用 resetRoute() 重置路由
|
|
// 使用 reload 时,不需要调用 resetRoute() 重置路由
|
|
window.location.reload();
|
|
window.location.reload();
|
|
}, 300);
|
|
}, 300);
|
|
- }) // 退出所有组
|
|
|
|
|
|
+ }).catch(()=>{
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ // 清除缓存/token等
|
|
|
|
+ Local.clear();
|
|
|
|
+ Session.clear();
|
|
|
|
+ Cookie.clear();
|
|
|
|
+ // 使用 reload 时,不需要调用 resetRoute() 重置路由
|
|
|
|
+ window.location.reload();
|
|
|
|
+ }, 300);
|
|
|
|
+ })
|
|
})
|
|
})
|
|
.catch(() => {});
|
|
.catch(() => {});
|
|
};
|
|
};
|