|
@@ -2,6 +2,11 @@ import { createRouter, createWebHistory } from 'vue-router';
|
|
import store from '@/stores/counter';
|
|
import store from '@/stores/counter';
|
|
import axios from 'axios';
|
|
import axios from 'axios';
|
|
|
|
|
|
|
|
+import common from './module/common';
|
|
|
|
+import dock from './module/dock';
|
|
|
|
+import channel from './module/channel';
|
|
|
|
+import train from './module/train';
|
|
|
|
+
|
|
const router = createRouter({
|
|
const router = createRouter({
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
history: createWebHistory(import.meta.env.BASE_URL),
|
|
routes: [
|
|
routes: [
|
|
@@ -18,7 +23,11 @@ const router = createRouter({
|
|
path: '/homeIndex',
|
|
path: '/homeIndex',
|
|
meta: { title: '中科在线(长春)' },
|
|
meta: { title: '中科在线(长春)' },
|
|
component: () => import('@/views/home/index.vue')
|
|
component: () => import('@/views/home/index.vue')
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ ...common,
|
|
|
|
+ ...dock,
|
|
|
|
+ ...channel,
|
|
|
|
+ ...train
|
|
]
|
|
]
|
|
}
|
|
}
|
|
]
|
|
]
|