Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

路由 name Redirect不是唯一 #564

Open
zebraoooo opened this issue Dec 3, 2024 · 3 comments
Open

路由 name Redirect不是唯一 #564

zebraoooo opened this issue Dec 3, 2024 · 3 comments

Comments

@zebraoooo
Copy link

Uncaught Error: A route named "Redirect" has been added as a child of a route with the same name. Route names must be unique and a nested route cannot use the same name as an ancestor.

@solaris-9
Copy link

same issue here.

@YuMingC233
Copy link

Please modify the src/router/index.ts file to change the "redirect" child's path name to another name, such as "redirect-child" or any name you prefer.

// src/router/index.ts
....
{
    path: '/redirect',
    component: Layout,
    name: 'Redirect',
    children: [
      {
        path: '/redirect/:path(.*)',
        name: 'Redirect-child',     // change this to another name
        component: () => import('@/views/Redirect/Redirect.vue'),
        meta: {}
      }
    ], ....
  },

@bzsome
Copy link

bzsome commented Dec 23, 2024

?what fuck?Is this a high-quality open source project without testing the submitted code for such obvious bugs?
这么明显的bug都有项目都跑不起来,提交代码不先测试吗,这是高质量开源项目吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants