vue跳转页面以新窗口打开
发布日期:2021-05-10 15:46:18 浏览次数:17 分类:精选文章

本文共 511 字,大约阅读时间需要 1 分钟。

首先给div绑定事件

定义方法跳转

//跳转商品详情页面        ProductDetail(product){             let Detail= this.$router.resolve({               //要跳转的页面的名称            name:"ProductDetail",            //传参            query:{   "productId":product.id,"skuCode":product.sku_code}          })          //以新窗口打开          window.open(Detail.href,'_blank')        }

在这里插入图片描述

跳转后页面接参

getProductById(){             	//接参            let productId= this.$route.query.productId;            let skuCode= this.$route.query.skuCode;                     },
上一篇:idea右边maven窗口
下一篇:使用es完成前端查询功能

发表评论

最新留言

路过按个爪印,很不错,赞一个!
[***.219.124.196]2025年04月10日 09时00分42秒