diff --git a/packages/inula-router/src/history/baseHistory.ts b/packages/inula-router/src/history/baseHistory.ts index 87451567..0b1bffa0 100644 --- a/packages/inula-router/src/history/baseHistory.ts +++ b/packages/inula-router/src/history/baseHistory.ts @@ -66,7 +66,9 @@ export function getBaseHistory( Object.assign(historyProps, nextState); } historyProps.length = browserHistory.length; - const args = { location: historyProps.location, action: historyProps.action }; + // 避免location饮用相同时setState不触发 + const location = Object.assign({}, historyProps.location); + const args = { location: location, action: historyProps.action }; transitionManager.notifyListeners(args); }; }