const resolved: {
location: Location;
route: Route;
href: string;
} = router.resolve(location, current?, append?)
可用于打开一个新的标签页
const {href}= this.$router.resolve({
name:'index',
....
})
window.open(href,"_blank")
const resolved: {
location: Location;
route: Route;
href: string;
} = router.resolve(location, current?, append?)
可用于打开一个新的标签页
const {href}= this.$router.resolve({
name:'index',
....
})
window.open(href,"_blank")