From ab8efd20055e2e2b571f9f0aaf8befc451022540 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Wed, 08 Mar 2023 18:17:03 +0800
Subject: [PATCH] view组件分包

---
 src/router/index.js |   16 +++++-----------
 1 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/src/router/index.js b/src/router/index.js
index f47496f..0fc3fc2 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -1,6 +1,6 @@
 import Vue from 'vue'
 import VueRouter from 'vue-router'
-import layout from '../views/layout.vue'
+import layout from '../views/layout/index.vue'
 
 Vue.use(VueRouter)
 
@@ -9,16 +9,10 @@
         path: '/',
         redirect: '/layout'
     },
-    // {
-    //     path: '/statistics',
-    //     name: 'statistics',
-    //     component: () => import('../views/statistics.vue')
-    // },
     {
         path: '/layout',
         redirect: '/layout/statistics',
         meta: {
-            title: '导航菜单'
         },
         component: layout,
         children: [
@@ -27,28 +21,28 @@
                 meta: {
                     title: '综合统计'
                 },
-                component: () => import('../views/statistics.vue')
+                component: () => import('../views/statistics/index.vue')
             },
             {
                 path: 'fireWarning',
                 meta: {
                     title: '防火预警'
                 },
-                component: () => import('../views/fireWarning.vue')
+                component: () => import('../views/fireWarning/index.vue')
             },
             {
                 path: 'armyLocal',
                 meta: {
                     title: '军地协同'
                 },
-                component: () => import('../views/armyLocal.vue')
+                component: () => import('../views/armyLocal/index.vue')
             },
             {
                 path: 'management',
                 meta: {
                     title: '运维管理'
                 },
-                component: () => import('../views/management.vue')
+                component: () => import('../views/management/index.vue')
             }
         ]
     },

--
Gitblit v1.9.3