wanghao 3 tuần trước cách đây
mục cha
commit
2be9d65a9f
1 tập tin đã thay đổi với 20 bổ sung16 xóa
  1. 20 16
      src/router/index.js

+ 20 - 16
src/router/index.js

@@ -30,10 +30,9 @@ import Layout from '@/layout'
 
 // 公共路由(可视化首页头部链接)
 export const constantRoutes = [{
-		path: '/',
-		redirect: 'forest',
-	}
-]
+	path: '/',
+	redirect: 'forest',
+}]
 
 
 
@@ -64,6 +63,16 @@ export const constantRoutesNew = [{
 		}
 	},
 	{
+		//驾驶舱
+		path: '/lookall',
+		name: 'lookall',
+		component: () => import('@/views/lookall'),
+		meta: {
+			// title: '水利云图'
+			title: '一张图'
+		}
+	},
+	{
 		//哨兵
 		path: '/Sentinel',
 		name: 'Sentinel',
@@ -73,12 +82,7 @@ export const constantRoutesNew = [{
 			title: '哨兵'
 		}
 	},
-		{
-			//一浏览
-			path 'lookall',
-			name 'lookall',
-			component () = import('@viewslookall'),
-		},
+
 	{
 		path: '/login',
 		component: () => import('@/views/system/login'),
@@ -94,11 +98,11 @@ export const constantRoutesNew = [{
 		component: () => import('@/views/error/404'),
 		hidden: true
 	},
-  {
-    path: '/401',
-    component: () => import('@/views/error/401'),
-    hidden: true
-  },
+	{
+		path: '/401',
+		component: () => import('@/views/error/401'),
+		hidden: true
+	},
 	{
 		path: '/40101',
 		component: () => import('@/views/error/40101'),
@@ -183,4 +187,4 @@ export default new Router({
 		y: 0
 	}),
 	routes: constantRoutesNew
-})
+})