|
|
|
@ -4,19 +4,19 @@ import VueRouter from "vue-router";
|
|
|
|
|
Vue.use(VueRouter);
|
|
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
|
{ path: "/", redirect: "/login" },
|
|
|
|
|
{
|
|
|
|
|
path: "/stritl",
|
|
|
|
|
path: "/",
|
|
|
|
|
redirect: "/stritl",
|
|
|
|
|
component: () => import("../components/Home.vue"),
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: "",
|
|
|
|
|
path: "/stritl",
|
|
|
|
|
component: () => import("../views/homePage/index.vue"),
|
|
|
|
|
name: "home",
|
|
|
|
|
name: "stritl",
|
|
|
|
|
meta: {
|
|
|
|
|
title: "首页",
|
|
|
|
|
icon: "el-icon-s-home",
|
|
|
|
|
// keepAlive: true,
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
@ -120,23 +120,24 @@ const routes = [
|
|
|
|
|
meta: { title: "echarts图表", icon: "", keepAlive: true },
|
|
|
|
|
},
|
|
|
|
|
//气象检测
|
|
|
|
|
{
|
|
|
|
|
path: "/weather",
|
|
|
|
|
component: () => import("../views/weather/index.vue"),
|
|
|
|
|
name: "weather",
|
|
|
|
|
meta: { title: "气象检测", icon: "", keepAlive: true },
|
|
|
|
|
},
|
|
|
|
|
//覆冰
|
|
|
|
|
{
|
|
|
|
|
path: "/icing",
|
|
|
|
|
component: () => import("../views/icing/index.vue"),
|
|
|
|
|
name: "icing",
|
|
|
|
|
meta: { title: "覆冰", icon: "", keepAlive: true },
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// path: "/weather",
|
|
|
|
|
// component: () => import("../views/weather/index.vue"),
|
|
|
|
|
// name: "weather",
|
|
|
|
|
// meta: { title: "气象检测", icon: "", keepAlive: true },
|
|
|
|
|
// },
|
|
|
|
|
// //覆冰
|
|
|
|
|
// {
|
|
|
|
|
// path: "/icing",
|
|
|
|
|
// component: () => import("../views/icing/index.vue"),
|
|
|
|
|
// name: "icing",
|
|
|
|
|
// meta: { title: "覆冰", icon: "", keepAlive: true },
|
|
|
|
|
// },
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: "/login",
|
|
|
|
|
name: "login",
|
|
|
|
|
component: () => import("../views/login/index.vue"),
|
|
|
|
|
meta: { title: "登录" },
|
|
|
|
|
},
|
|
|
|
|