mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-23 17:10:07 +00:00
fix: try revert due to test issue
This commit is contained in:
parent
88dfbcba65
commit
5141435ffe
@ -65,5 +65,11 @@ function _getHashElementScrollMarginTop (selector: string): number {
|
||||
function _isDifferentRoute (from: RouteLocationNormalized, to: RouteLocationNormalized): boolean {
|
||||
const isSamePath = to.path === from.path
|
||||
|
||||
return isSamePath ? JSON.stringify(from.params) !== JSON.stringify(to.params) : true
|
||||
if (!isSamePath) {
|
||||
return true
|
||||
}
|
||||
if (isSamePath && JSON.stringify(from.params) !== JSON.stringify(to.params)) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user