Browse Source

fix: 还原首页路由

Gaokun Wang 5 days ago
parent
commit
0d9479925a
1 changed files with 13 additions and 0 deletions
  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,