将原有的axios登出请求改为直接跳转第三方SSO登出地址,完成统一登出流程
@@ -132,9 +132,7 @@ const linkLogin = () => {
const loginOut = () => {
- axios.post('//cloud.cocorobo.cn/api/logout').then(res => {
- linkLogin()
- })
+ top.location.href = 'https://sz.edu.cn/thirdauth/oauth2/sso_logout?app_id=f03970962b254aa29115fefd42a8eeb7&redirect_uri=https://cloud.cocorobo.cn/api/logout'
}
// 同步登录信息