fix: try revert due to test issue

This commit is contained in:
julien huang 2023-08-01 23:39:18 +02:00
parent 88dfbcba65
commit 5141435ffe

View File

@ -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
}