2021年4月28日星期三

how to make params consists of 2 variables vue

I want to have a route like this.

http://localhost:8080/help/category/newuser#1  

Therefore, I write this in my template

<router-link     v-bind:to="{     name: 'help',     params: { id: selectedCategory+'#'+eachQuestion.id },     }"  >  

But this doesn't work and resulting in

http://localhost:8080/help/category/newuser%231  

So the # turns into %23. How to solve this? Thanks!

https://stackoverflow.com/questions/67309756/how-to-make-params-consists-of-2-variables-vue April 29, 2021 at 09:06AM

没有评论:

发表评论