Skip to content

Why not just export useRouter and useRoute? #408

@zxdstyle

Description

@zxdstyle

Describe the bug

I have no way to get the info assigned to the current route when it was defined.For example, I want to get the value of the following route definition checkAuth

const routes: RouteDefinition[] = [
    {
        path: '/home',
        component: lazy(() => import('@/views/home')),
        info: {
            checkAuth: true,
        },
    },
]

Your Example Website or App

empty

Steps to Reproduce the Bug or Issue

empty

Expected behavior

empty

Screenshots or Videos

No response

Platform

  • OS: [e.g. macOS, Windows, Linux]
  • Browser: [e.g. Chrome, Safari, Firefox]
  • Version: [e.g. 91.1]

Additional context

No response

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