在vue中打开新页面
1.使用场景,可视化的全屏显示功能
const routeLink = this.$router.resolve({
path: '/index'
})
window.open(routeLink.href, '_blank')
2.关闭页面
window.opener = null;
window.open("", "_self");
window.close();
1.使用场景,可视化的全屏显示功能
const routeLink = this.$router.resolve({
path: '/index'
})
window.open(routeLink.href, '_blank')
2.关闭页面
window.opener = null;
window.open("", "_self");
window.close();