如果 在一级路由下 只有一个子目录 想要展示这个父级目录 只需要加上一个属性即可
假设目前的路由是这种情况
但是我只想把团游展示出来
如果直接通过权限配置只展示一个 会导致这个情况,父级目录直接覆盖了
想要解决,只需要加一个属性即可,在和meta同级加个参数 alwaysShow: true,
看 这样就解决了 是不是非常的easy呢
如果 在一级路由下 只有一个子目录 想要展示这个父级目录 只需要加上一个属性即可
假设目前的路由是这种情况
但是我只想把团游展示出来
如果直接通过权限配置只展示一个 会导致这个情况,父级目录直接覆盖了
想要解决,只需要加一个属性即可,在和meta同级加个参数 alwaysShow: true,
看 这样就解决了 是不是非常的easy呢