diff --git a/packages/router-core/src/qss.ts b/packages/router-core/src/qss.ts index c66339c922..1afc1be1f9 100644 --- a/packages/router-core/src/qss.ts +++ b/packages/router-core/src/qss.ts @@ -30,6 +30,7 @@ function toValue(mix) { var str = decodeURIComponent(mix) if (str === 'false') return false if (str === 'true') return true + if (str.charAt(0) === '0') return str return +str * 0 === 0 ? +str : str }