方法1
goRouter(row) {
// 路由跳转各种详情
let routeData = this.$router.resolve({
path: '/merchant/mallOrder/details',//跳转地址
query:{ //参数
id: row.id,
getGoodsType: row.getGoodsType,
allSum: row.allSum,
});
window.open(routeData.href, "_blank"); //新页面打开
}
方法2
this.$router.push({
path:'/merchant/mallOrder/details',
query:{
id: row.id,
getGoodsType: row.getGoodsType,
allSum: row.allSum,
}
})
//直接跳转
路由传参
//当前页面
this.$router.push({
path: path,
query: query
})
//打开新页面
let routeData = this.$router.resolve({
path: path,
query: query,
});
window.open(routeData.href, "_blank"); //新页面打开
this.$router.replace('/home')//不可返回