Skip to content

Vue-router -Is there a function to clear the routes #2303

@shenjianzch

Description

@shenjianzch

What problem does this feature solve?

Adding a route has a router.addroutes method but I want to clear how the route I've registered should be successful.

What does the proposed API look like?

router.clearAll()

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