Sfoglia il codice sorgente

修复跳转地址问题

louhangfei 1 anno fa
parent
commit
532248a97f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/utils/getRedirectUrl.ts

+ 1 - 1
src/utils/getRedirectUrl.ts

@@ -11,5 +11,5 @@ export const getRedirectUrl = () => {
 export const getLogoutUrl = () => {
 export const getLogoutUrl = () => {
   if (!loginApp) return '';
   if (!loginApp) return '';
   const encodeUrl = encodeURIComponent(window.location.href);
   const encodeUrl = encodeURIComponent(window.location.href);
-  return urlJoin(loginApp, `logout?redirect=${encodeUrl}`);
+  return loginApp + `logout?redirect=${encodeUrl}`;
 };
 };