fix: 优化单点登录

This commit is contained in:
xiaoxian521 2022-11-21 16:44:31 +08:00
parent b10c3eb1bb
commit 0d4d3a301b

View File

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