需要在history模式下操作,如果是hash模式需要改成history模式,相应的Nginx配置也要修改

1、数据大屏页面配置到路由中 route/index.js

2、配置虚拟菜单

3、Link.vue中配置

isNewPage(){
  return  this.to==='/dataVenterprise';
},
if(this.isNewPage){
  return{
    to: to.replace("/dataVenterprise","/enterprise"),
    target:'_blank',
    rel: 'noopener'
  }
}

Logo

快速构建 Web 应用程序

更多推荐