Pārlūkot izejas kodu

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

修复演示菜单的错误日志页面指向了404的问题
无木 3 gadi atpakaļ
vecāks
revīzija
341bd633d8

+ 3 - 0
src/router/routes/basic.ts

@@ -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: [
     {
@@ -69,6 +71,7 @@ export const ERROR_LOG_ROUTE: AppRouteRecordRaw = {
       meta: {
         title: t('routes.basic.errorLogList'),
         hideBreadcrumb: true,
+        currentActiveMenu: '/error-log',
       },
     },
   ],

+ 1 - 1
src/router/routes/modules/demo/feat.ts

@@ -181,7 +181,7 @@ const feat: AppRouteModule = {
       },
     },
     {
-      path: 'error-log',
+      path: '/error-log',
       name: 'ErrorLog',
       component: () => import('/@/views/sys/error-log/index.vue'),
       meta: {

+ 1 - 1
src/views/sys/error-log/index.vue

@@ -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';