Skip to content

希望vue-router的addRoutes方法能向一个已存在的路由里增加子路由 #1734

Closed
@wangyi7099

Description

@wangyi7099

What problem does this feature solve?

嵌套路由的情况下,我想要动态获取菜单,这些每个菜单对应一个vue文件,我想把他们作为子路由添加到一个已存在的路由下面.

What does the proposed API look like?

addRoutes(route,parent)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions