|
|
@@ -156,8 +156,8 @@ export function getOAuthLogoutUrl() {
|
|
|
const config = getOAuthConfig()
|
|
|
const baseURL = config.authorizeURL.replace(/\/oauth2\/authorize$/, '')
|
|
|
// 登出后回到 index.html,由路由守卫自动跳转到登录页
|
|
|
- // const postLogoutRedirectUri = location.origin + '/index.html'
|
|
|
- // return `${baseURL}/logout?post_logout_redirect_uri=${encodeURIComponent(postLogoutRedirectUri)}`
|
|
|
- const postLogoutRedirectUri = 'https://wms.mangoo.hobbystocks.cn/forward.html'
|
|
|
- return postLogoutRedirectUri
|
|
|
+ const postLogoutRedirectUri = location.origin + '/index.html'
|
|
|
+ return `${baseURL}/logout?post_logout_redirect_uri=${encodeURIComponent(postLogoutRedirectUri)}`
|
|
|
+ // const postLogoutRedirectUri = 'https://wms.mangoo.hobbystocks.cn/forward.html'
|
|
|
+ // return postLogoutRedirectUri
|
|
|
}
|