方式一:
openNewWindow() {
const { href } = this.$router.resolve({
path: "/preview",
});
window.open(href, "_blank", "width=900, height=700");
},
方式二:
<router-link target="_blank" :to="{ path: '/open' }">
打开新窗口
</router-link>