router-link组件的to属性值有两种写法,字符串类型和对象类型
如果要动态传值,比如放到for循环中,传入for的index值,这时就必须使用对象形式,动态传值
<router-link :to="{path:‘/old_data_details/params/‘+item.id}" > </router-link>
参考:https://blog.csdn.net/qq_42928918/article/details/88406257
原文:https://www.cnblogs.com/gopark/p/11536126.html