The object properties obtained by vue-router from the background are used as routing addresses

clipboard.png

clipboard.png

I just tried several ways to pass the path attribute of item as a routing address.
Please guide me

.
Mar.10,2021

how much is this vue? You can't use interpolation in attributes, can you? Try : to= "subItem.path"


ide/syntax.html-sharp%E7%89%B9%E6%80%A7" rel=" nofollow noreferrer "> document talks about

the most common form of data binding is text interpolation using "Mustache" syntax (double curly braces):
<span>Message: {{ msg }}</span>
Mustache syntax cannot be applied to HTML features. In this case, you should use the v-bind directive:
<div v-bind:id="dynamicId"></div>
The abbreviation of

v-bind is as mentioned upstairs

.
:to="subItem.path"

for beginners, ide/" rel=" nofollow noreferrer "> official documents should be reviewed as a whole

Menu