mirror of
https://github.com/zuiidea/antd-admin
synced 2026-10-27 10:43:45 +00:00
fix #924 404 Not Found after router change
This commit is contained in:
+2
-3
@@ -246,9 +246,8 @@ export function getLocale() {
|
||||
export function setLocale(language) {
|
||||
if (getLocale() !== language) {
|
||||
umiRouter.push({
|
||||
pathname: `/${language}${deLangPrefix(window.location.pathname)}${
|
||||
window.location.search
|
||||
}`,
|
||||
pathname: `/${language}${deLangPrefix(window.location.pathname)}`,
|
||||
search: window.location.search,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user