Commit 341bd633d8ed38a5a357db8f97166c2eba2895d3

Authored by 无木
1 parent 571f2813

fix(demo): menu `error-log` link to 404 page

修复演示菜单的错误日志页面指向了404的问题
src/router/routes/basic.ts
@@ -57,9 +57,11 @@ export const ERROR_LOG_ROUTE: AppRouteRecordRaw = { @@ -57,9 +57,11 @@ export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
57 path: '/error-log', 57 path: '/error-log',
58 name: 'ErrorLog', 58 name: 'ErrorLog',
59 component: LAYOUT, 59 component: LAYOUT,
  60 + redirect: '/error-log/list',
60 meta: { 61 meta: {
61 title: 'ErrorLog', 62 title: 'ErrorLog',
62 hideBreadcrumb: true, 63 hideBreadcrumb: true,
  64 + hideChildrenInMenu: true,
63 }, 65 },
64 children: [ 66 children: [
65 { 67 {
@@ -69,6 +71,7 @@ export const ERROR_LOG_ROUTE: AppRouteRecordRaw = { @@ -69,6 +71,7 @@ export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
69 meta: { 71 meta: {
70 title: t('routes.basic.errorLogList'), 72 title: t('routes.basic.errorLogList'),
71 hideBreadcrumb: true, 73 hideBreadcrumb: true,
  74 + currentActiveMenu: '/error-log',
72 }, 75 },
73 }, 76 },
74 ], 77 ],
src/router/routes/modules/demo/feat.ts
@@ -181,7 +181,7 @@ const feat: AppRouteModule = { @@ -181,7 +181,7 @@ const feat: AppRouteModule = {
181 }, 181 },
182 }, 182 },
183 { 183 {
184 - path: 'error-log', 184 + path: '/error-log',
185 name: 'ErrorLog', 185 name: 'ErrorLog',
186 component: () => import('/@/views/sys/error-log/index.vue'), 186 component: () => import('/@/views/sys/error-log/index.vue'),
187 meta: { 187 meta: {
src/views/sys/error-log/index.vue
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 import DetailModal from './DetailModal.vue'; 35 import DetailModal from './DetailModal.vue';
36 import { BasicTable, useTable, TableAction } from '/@/components/Table/index'; 36 import { BasicTable, useTable, TableAction } from '/@/components/Table/index';
37 37
38 - import { useModal } from '/@/components/Modal/index'; 38 + import { useModal } from '/@/components/Modal';
39 import { useMessage } from '/@/hooks/web/useMessage'; 39 import { useMessage } from '/@/hooks/web/useMessage';
40 import { useI18n } from '/@/hooks/web/useI18n'; 40 import { useI18n } from '/@/hooks/web/useI18n';
41 41