Explorar o código

fix: 优化单点登录

xiaoxian521 %!s(int64=2) %!d(string=hai) anos
pai
achega
0d4d3a301b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/utils/sso.ts

+ 1 - 1
src/utils/sso.ts

@@ -43,7 +43,7 @@ import { subBefore, getQueryMap } from "@pureadmin/utils";
     delete params["roles"];
     delete params["accessToken"];
 
-    const newUrl = `${location.origin}${subBefore(
+    const newUrl = `${location.origin}${location.pathname}${subBefore(
       location.hash,
       "?"
     )}?${JSON.stringify(params)