VUE打开新页面方法

我们知道,我们可以通过<a href='***' target='_blank'>*****</a>window.open(strUrl, strWindowName, [strWindowFeatures])来打开新页面,那vue又如何实现打开新页面呢?参考下面代码;

const routeData = this.$router.resolve({
   path: '/manager/index',
   query:{
    type: "view",
    modelId: this.currentNodekey,
    readOnly: true,
    isFullScreen:true
   }
 });
 window.open(routeData.href, "_blank");
Logo

基于 Vue 的企业级 UI 组件库和中后台系统解决方案,为数万开发者服务。

更多推荐