const newRoute = {
path: '/new-route',
component: () => import('@/views/helpPreview/index.vue'),
};
this.$router.addRoute(newRoute);
this.$router.push({path: '/new-route', query:{item:item}})
在组件内部新增路由,并且跳转到这个路由,在vue系统的路由标签页中显示组件,为什么这种方式不显示呢?
vue系统标签页
试试这个demo,我从element-ui官网借鉴写的:
https://element.eleme.cn/#/zh-CN/component/tabs
============我是分割线==================