vue-vben-admin icon indicating copy to clipboard operation
vue-vben-admin copied to clipboard

可不可以添加一个嵌套路由的写法

Open wssnail opened this issue 4 years ago • 7 comments

页面中嵌套路由

有些需求需要在content页面中实现路由的切换,而不会整个页面切换

Problem

目前整个路由是被vben接管的,只支持层级路由,测试了一下router-view支持的嵌套路由,没有被支持,当拥有子页面时,顶层页面的不使用component: getParentLayout(),直接指向某个具体的页面,会出现404

Expected behaviour

期望能支持router-view的嵌套路由,或者相关的可替代写法

Alternatives

1、使用tab来操作的话有比较多的问题需要考虑,层级菜单也不好实现; 2、把菜单写成公共组件引入到所有页面,会出现菜单也回重新加载,不太友好。

wssnail avatar May 27 '21 08:05 wssnail

现在可以了吗?

theores avatar Oct 25 '21 02:10 theores

来督促一下,看到文档上的大黄字不支持嵌套路由,问下有计划进行了么。

qqzhangyanhua avatar Apr 28 '22 00:04 qqzhangyanhua

需求+1

Garens avatar Jul 05 '22 15:07 Garens

需求+1

spionbo avatar Sep 27 '22 08:09 spionbo

需求+1

theores avatar Oct 12 '22 07:10 theores

为什么不能支持多级路由嵌套啊,有需求问题还是技术问题

jiejie-color avatar Nov 20 '23 05:11 jiejie-color

现在支持了吗,还以为代码写的有问题

mercury-zhang avatar Dec 29 '23 01:12 mercury-zhang