1.router.js内写跳转的新页面的路由
2.在点击跳转的事件内写
outsideLink () {
let {href}= this.$router.resolve({
path: "/newLinkPage",
});
window.open(href, '_blank');
}
原文链接:https://www.cnblogs.com/chr506029589/p/13577339.html
作者:橙子不是orange
1.router.js内写跳转的新页面的路由
2.在点击跳转的事件内写
outsideLink () {
let {href}= this.$router.resolve({
path: "/newLinkPage",
});
window.open(href, '_blank');
}
原文链接:https://www.cnblogs.com/chr506029589/p/13577339.html
作者:橙子不是orange