http://www.fly63.com/article/detial/935 路由传参
https://segmentfault.com/a/1190000015727078 传值
https://segmentfault.com/a/1190000015782272?utm_source=tag-newest vuex详解
https://www.cnblogs.com/chinabin1993/p/9848720.html
https://segmentfault.com/a/1190000012996217?utm_source=tag-newest slot与slot-scope
打开新窗口*(编程式导航):
openNewWindow(e){
const entryId=e.id;
let {href}=this.$router.resolve({
path:"/home/:id",
name:"home",
params:{
id:entryId
};
//path:`/home/${entryId}`
window.open(href,'_blank')
})
}
打开新窗口*(router-link):
<router-link tag="a" target="_blank" :to="{name:'searchGoods',params:{catId:0},query:{keywords:'手机'}}">热门好货</router-link>
路由详解
https://blog.csdn.net/lhjuejiang/article/details/81082090