浏览代码

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,