Browse Source

页面bug

彭宇 2 years ago
parent
commit
36a86d87a9
1 changed files with 7 additions and 6 deletions
  1. 7 6
      src/router/index.js

+ 7 - 6
src/router/index.js

@@ -29,12 +29,13 @@ import Layout from '@/layout'
  */
 
 // 公共路由(可视化首页头部链接)
-export const constantRoutes = [{
+export const constantRoutes = [
+  {
 		path: '/',
 		redirect: 'forest',
 	},
 	{
-		//生态中心
+		//生态云图
 		path: '/forest',
 		name: 'forest',
 		component: () => import('@/views/forest'),
@@ -62,7 +63,7 @@ export const constantRoutes = [{
 	}, {
 		path: '/',
 		name: '',
-		component: () => import('@/views/'),
+		component: () => import('@/views/monitor'),
 		meta: {
 			title: '土壤墒情'
 		}
@@ -70,14 +71,14 @@ export const constantRoutes = [{
   {
 		path: '/',
 		name: '',
-		component: () => import('@/views/'),
+		component: () => import('@/views/monitor'),
 		meta: {
 			title: '污染源'
 		}
 	}, {
 		path: '/',
 		name: '',
-		component: () => import('@/views/'),
+		component: () => import('@/views/monitor'),
 		meta: {
 			title: '水质环境'
 		}
@@ -85,7 +86,7 @@ export const constantRoutes = [{
   {
     path: '/',
     name: '',
-    component: () => import('@/views/'),
+    component: () => import('@/views/monitor'),
     meta: {
       title: '大气环境'
     }