Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0e13412f
authored
Jul 19, 2024
by
likui628
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: page not found when clicked breadcrumb
1 parent
9ec91ac1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
apps/backend-mock/src/modules/menu/menu.controller.ts
apps/web-antd/src/router/routes/modules/demos.ts
apps/backend-mock/src/modules/menu/menu.controller.ts
View file @
0e13412
...
@@ -89,16 +89,16 @@ export class MenuController {
...
@@ -89,16 +89,16 @@ export class MenuController {
},
},
name
:
'Demos'
,
name
:
'Demos'
,
path
:
'/demos'
,
path
:
'/demos'
,
redirect
:
'/access'
,
redirect
:
'/
demos/
access'
,
children
:
[
children
:
[
{
{
name
:
'Access'
,
name
:
'Access'
,
path
:
'
/
access'
,
path
:
'access'
,
meta
:
{
meta
:
{
icon
:
'mdi:cloud-key-outline'
,
icon
:
'mdi:cloud-key-outline'
,
title
:
'page.demos.access.backendPermissions'
,
title
:
'page.demos.access.backendPermissions'
,
},
},
redirect
:
'/access/page-control'
,
redirect
:
'/
demos/
access/page-control'
,
children
:
[
children
:
[
{
{
name
:
'AccessPageControl'
,
name
:
'AccessPageControl'
,
...
...
apps/web-antd/src/router/routes/modules/demos.ts
View file @
0e13412
...
@@ -98,7 +98,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -98,7 +98,7 @@ const routes: RouteRecordRaw[] = [
children
:
[
children
:
[
{
{
name
:
'HideChildrenInMenuParent'
,
name
:
'HideChildrenInMenuParent'
,
path
:
'hide-
children-in-menu
'
,
path
:
'hide-
menu-children
'
,
component
:
()
=>
component
:
()
=>
import
(
'#/views/demos/features/hide-menu-children/parent.vue'
),
import
(
'#/views/demos/features/hide-menu-children/parent.vue'
),
meta
:
{
meta
:
{
...
@@ -130,6 +130,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -130,6 +130,7 @@ const routes: RouteRecordRaw[] = [
{
{
name
:
'BreadcrumbDemos'
,
name
:
'BreadcrumbDemos'
,
path
:
'breadcrumb'
,
path
:
'breadcrumb'
,
redirect
:
'/demos/features/breadcrumb/lateral'
,
meta
:
{
meta
:
{
icon
:
'lucide:navigation'
,
icon
:
'lucide:navigation'
,
title
:
$t
(
'page.demos.features.breadcrumbNavigation'
),
title
:
$t
(
'page.demos.features.breadcrumbNavigation'
),
...
@@ -161,6 +162,7 @@ const routes: RouteRecordRaw[] = [
...
@@ -161,6 +162,7 @@ const routes: RouteRecordRaw[] = [
{
{
name
:
'BreadcrumbLevel'
,
name
:
'BreadcrumbLevel'
,
path
:
'level'
,
path
:
'level'
,
redirect
:
'/demos/features/breadcrumb/level/detail'
,
meta
:
{
meta
:
{
icon
:
'lucide:navigation'
,
icon
:
'lucide:navigation'
,
title
:
$t
(
'page.demos.features.breadcrumbLevel'
),
title
:
$t
(
'page.demos.features.breadcrumbLevel'
),
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment