Is there a way to incorporate a variable into a router-link?
<Col
span="8"
v-for="(item,index) in this.data"
>
<router-link to='/home/workpanel/true/ + item.name'>
When trying to use the variable, it remains as a string:
'/home/workpanel/true/ + item.name'
How can I properly utilize the variable in the router-link
's to
attribute?
Upon clicking the link, the browser displays:
http://localhost:8080/home/workpanel/true/%20+%20item.name