fix: history.pushState
This commit is contained in:
parent
8b205ec8b0
commit
9e7e6a6051
@ -170,7 +170,7 @@ export const Page = (props) => {
|
||||
onTabClick={(activeKey) => {
|
||||
setLoading(true);
|
||||
setActiveKey(activeKey);
|
||||
window.history.pushState({}, '', location.pathname + `?tab=` + activeKey);
|
||||
window.history.pushState({}, '', window.location.pathname + `?tab=` + activeKey);
|
||||
setTimeout(() => {
|
||||
setLoading(false);
|
||||
}, 50);
|
||||
|
Loading…
Reference in New Issue
Block a user