Vue3中将router.push改为新打开一个标签页
之前跳转代码
router.push({
path: '/appDetail',
query: {id: appInfo.id},
})
修改后
window.open(router.resolve({
path: '/appDetail',
query: { id: appInfo.id }
}).href, '_blank');
学而不思则罔,思而不学则殆!
router.push({
path: '/appDetail',
query: {id: appInfo.id},
})
window.open(router.resolve({
path: '/appDetail',
query: { id: appInfo.id }
}).href, '_blank');