|
@@ -4,46 +4,54 @@ import VueRouter from "vue-router";
|
|
Vue.use(VueRouter);
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
const routes = [
|
|
const routes = [
|
|
- {
|
|
|
|
|
|
+ {
|
|
path: '/',
|
|
path: '/',
|
|
redirect: '/situationScreen'
|
|
redirect: '/situationScreen'
|
|
- },
|
|
|
|
|
|
+ },
|
|
{
|
|
{
|
|
path: "/situationScreen",
|
|
path: "/situationScreen",
|
|
name: "situationScreen",
|
|
name: "situationScreen",
|
|
meta: {
|
|
meta: {
|
|
- title: '任务大屏'
|
|
|
|
|
|
+ title: '任务大屏'
|
|
},
|
|
},
|
|
component: () => import("../views/situationScreen.vue")
|
|
component: () => import("../views/situationScreen.vue")
|
|
- },
|
|
|
|
- {
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
path: "/taskScreen",
|
|
path: "/taskScreen",
|
|
name: "taskScreen",
|
|
name: "taskScreen",
|
|
meta: {
|
|
meta: {
|
|
- title: '任务大屏'
|
|
|
|
|
|
+ title: '任务大屏'
|
|
},
|
|
},
|
|
component: () => import("../views/taskScreen.vue")
|
|
component: () => import("../views/taskScreen.vue")
|
|
- },
|
|
|
|
- {
|
|
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: "/historicTaskScreen",
|
|
|
|
+ name: "historicTaskScreen",
|
|
|
|
+ meta: {
|
|
|
|
+ title: '任务大屏'
|
|
|
|
+ },
|
|
|
|
+ component: () => import("../views/historicTaskScreen.vue")
|
|
|
|
+ },
|
|
|
|
+ {
|
|
path: "/monitorScreen",
|
|
path: "/monitorScreen",
|
|
name: "monitorScreen",
|
|
name: "monitorScreen",
|
|
meta: {
|
|
meta: {
|
|
- title: '监控大屏'
|
|
|
|
|
|
+ title: '监控大屏'
|
|
},
|
|
},
|
|
component: () => import("../views/monitorScreen.vue")
|
|
component: () => import("../views/monitorScreen.vue")
|
|
- },
|
|
|
|
|
|
+ },
|
|
{
|
|
{
|
|
- path: '/:pathMatch(.*)',
|
|
|
|
|
|
+ path: '/:pathMatch(.*)',
|
|
meta: {
|
|
meta: {
|
|
- title: '404'
|
|
|
|
|
|
+ title: '404'
|
|
},
|
|
},
|
|
component: () => import("../views/404.vue")
|
|
component: () => import("../views/404.vue")
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
];
|
|
];
|
|
|
|
|
|
const router = new VueRouter({
|
|
const router = new VueRouter({
|
|
- routes,
|
|
|
|
|
|
+ routes,
|
|
});
|
|
});
|
|
|
|
|
|
export default router;
|
|
export default router;
|