www.fly63.com/article/det… 路由传参
segmentfault.com/a/119000001… 传值
segmentfault.com/a/119000001… vuex详解
www.cnblogs.com/chinabin199…
segmentfault.com/a/119000001… 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