vue3相关的操作

61 阅读1分钟

vue中通过路由的方式跳转到新窗口

const {href} = router.resolve({
    path: 'xxxx',
    query: {
        params: type,
    },
});
window.open(href, '_blank');