mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-24 01:19:58 +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) {
|
if (!isSamePath) {
|
||||||
return true
|
return true
|
||||||
}
|
} else if (JSON.stringify(from.params) !== JSON.stringify(to.params)) {
|
||||||
if (isSamePath && JSON.stringify(from.params) !== JSON.stringify(to.params)) {
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user