diff --git a/src/router/index.js b/src/router/index.js index b0396b4..94b5fea 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -7,13 +7,22 @@ const routes = [ { path: "/amap", component: () => import("../components/AMap.vue") }, // { path: "/", component: () => import("../views/Overview/index.vue") }, { - path: "/", component: () => import("../views/Layout.vue"), children: [ + path: "/", + component: () => import("../views/Layout.vue"), + children: [ { - path: '', component: () => import('../views/Overview/index.vue') + path: "", + component: () => import("../views/Overview/index.vue"), }, - { path: "monitor", component: () => import("../views/Monitor/index.vue") }, - { path: "/monitor/detail", component: () => import("../views/Monitor/monitor-detail.vue") }, - ] + { + path: "monitor", + component: () => import("../views/Monitor/index.vue"), + }, + { + path: "/monitor/detail", + component: () => import("../views/Monitor/monitor-detail.vue"), + }, + ], }, ]; @@ -23,7 +32,7 @@ const routes = [ const router = createRouter({ // 4. 内部提供了 history 模式的实现。为了简单起见,我们在这里使用 hash 模式。 history: createWebHashHistory(), - routes, // `routes: routes` 的缩写 + routes, }); export default router; diff --git a/src/views/Overview/ProjectPersonCount.vue b/src/views/Overview/ProjectPersonCount.vue index 1e32a3e..bba14d6 100644 --- a/src/views/Overview/ProjectPersonCount.vue +++ b/src/views/Overview/ProjectPersonCount.vue @@ -3,36 +3,46 @@