yinxia.yang 3 недель назад
Родитель
Сommit
5655dff9db
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/utils/auth.ts

+ 4 - 4
src/utils/auth.ts

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