直接上代码
openPage (e) {
toUrl = this.$router.resolve({ path: '/imageView', query: { id: "1" } })
window.open(toUrl.href, '_blank', `height=${h},width=${w},toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no`)
},
window.open(toUrl.href, '_blank', `height=${h},width=${w},toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no`
这里面是新窗口一些配置,可以自行配置
接口参数
created () {
const id = this.$route.query.id
console.log('传值', id)
},