< section >
<div class="nav">
<div class="nav_con">
<router-link :to="{path:item.link,query:{title:item.title,category_id:item.id}}" class="nav_item" v-for="item in Nav" :key="item.id">
<span class="nav_img"><img :src="item.icon"></span>
<i class="nav_text">{{item.title}}</i>
</router-link>
</div>
</div>
< / section >
I defined link, in the local json, but not in the actual background data. I need to configure the route myself. I know it uses variables, but I just can"t write it.