query problem #2306
query problem
#2306
-
When i use this.$router.replace({path:'/pageA',query:{showFooter:false}}) in hash routing. When i get showFooter in pageA, the type of showFooter is usually string,but sometimes showFooter is boolean. I want to know why? |
Beta Was this translation helpful? Give feedback.
Answered by
Deckluhm
Jul 18, 2024
Replies: 1 comment 1 reply
-
It's always a string in my understanding |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It can either be a
string
,number
,null
orundefined
(source: https://github.com/vuejs/router/blob/main/packages/router/src/query.ts#L23).Where do you see that?