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

前端路由重复引用报错 #7641

Closed
beaverwu opened this issue Dec 24, 2024 · 2 comments
Closed

前端路由重复引用报错 #7641

beaverwu opened this issue Dec 24, 2024 · 2 comments

Comments

@beaverwu
Copy link

beaverwu commented Dec 24, 2024

版本号:

3.7.2 使用springboot3的分支

问题描述:

constant.ts中export const PAGE_NOT_FOUND_NAME = 'PageNotFound';
,在basic.ts文件引用的时候,重复引用导致路由报错

// 404 on a page
export const PAGE_NOT_FOUND_ROUTE: AppRouteRecordRaw = {
path: '/:path(.)',
name: PAGE_NOT_FOUND_NAME,
component: LAYOUT,
meta: {
title: 'ErrorPage',
hideBreadcrumb: true,
hideMenu: true,
},
children: [
{
path: '/:path(.)',
name: PAGE_NOT_FOUND_NAME + '_child',
component: EXCEPTION_COMPONENT,
meta: {
title: 'ErrorPage',
hideBreadcrumb: true,
hideMenu: true,
},
},
],
};

错误截图:

8d9ed1a076adf086c20dc86787d797a5

友情提示:

  • 未按格式要求发帖、描述过于简单的,会被直接删掉;
  • 描述问题请图文并茂,方便我们理解并快速定位问题;
  • 如果使用的不是master,请说明你使用的分支;
@zhangdaiscott
Copy link
Member

zhangdaiscott commented Dec 24, 2024

你不是主干吧
这个问题修复过了

@beaverwu
Copy link
Author

beaverwu commented Dec 24, 2024 via email

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

2 participants