mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-23 17:10:07 +00:00
chore: improve conditions
This commit is contained in:
parent
5141435ffe
commit
cf98060a21
@ -67,8 +67,7 @@ function _isDifferentRoute (from: RouteLocationNormalized, to: RouteLocationNorm
|
||||
|
||||
if (!isSamePath) {
|
||||
return true
|
||||
}
|
||||
if (isSamePath && JSON.stringify(from.params) !== JSON.stringify(to.params)) {
|
||||
} else if (JSON.stringify(from.params) !== JSON.stringify(to.params)) {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user