Skip to content

Commit

Permalink
fix(demo): menu error-log link to 404 page
Browse files Browse the repository at this point in the history
修复演示菜单的错误日志页面指向了404的问题
  • Loading branch information
mynetfan committed Jul 21, 2021
1 parent 571f281 commit 341bd63
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/router/routes/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
path: '/error-log',
name: 'ErrorLog',
component: LAYOUT,
redirect: '/error-log/list',
meta: {
title: 'ErrorLog',
hideBreadcrumb: true,
hideChildrenInMenu: true,
},
children: [
{
Expand All @@ -69,6 +71,7 @@ export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
meta: {
title: t('routes.basic.errorLogList'),
hideBreadcrumb: true,
currentActiveMenu: '/error-log',
},
},
],
Expand Down
2 changes: 1 addition & 1 deletion src/router/routes/modules/demo/feat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ const feat: AppRouteModule = {
},
},
{
path: 'error-log',
path: '/error-log',
name: 'ErrorLog',
component: () => import('/@/views/sys/error-log/index.vue'),
meta: {
Expand Down
2 changes: 1 addition & 1 deletion src/views/sys/error-log/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import DetailModal from './DetailModal.vue';
import { BasicTable, useTable, TableAction } from '/@/components/Table/index';
import { useModal } from '/@/components/Modal/index';
import { useModal } from '/@/components/Modal';
import { useMessage } from '/@/hooks/web/useMessage';
import { useI18n } from '/@/hooks/web/useI18n';
Expand Down

0 comments on commit 341bd63

Please sign in to comment.