소스 검색

fix: 还原首页路由

Gaokun Wang 5 일 전
부모
커밋
0d9479925a
1개의 변경된 파일13개의 추가작업 그리고 0개의 파일을 삭제
  1. 13 0
      uavps-web/src/router/index.js

+ 13 - 0
uavps-web/src/router/index.js

@@ -61,6 +61,19 @@ export const constantRoutes = [
     component: () => import('@/views/error/401'),
     hidden: true
   },
+  {
+    path: '',
+    component: Layout,
+    redirect: 'index',
+    children: [
+      {
+        path: 'index',
+        component: () => import('@/views/index'),
+        name: 'Index',
+        meta: { title: '首页', icon: 'dashboard', affix: true }
+      }
+    ]
+  },
   {
     path: '',
     component: Layout,