Skip to content

Commit

Permalink
fix: qss.ts toValue function (#357)
Browse files Browse the repository at this point in the history
  • Loading branch information
anokthus authored Nov 10, 2022
1 parent f6a5dfe commit 6160825
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/router-core/src/qss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 6160825

Please sign in to comment.