liufan9527
2024-11-22 7ed3f40b4e8feaac97e90008649fcf047eabe1f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import Vue from "vue";
import Router from "vue-router";
import index from "@/components/index";
import login from "@/components/login";
import URLconfig from "../../static/URLconfig";
import home from "@/components/home";
 
Vue.use(Router);
const routes = [
  {
    path: "/",
    redirect: "login"
  },
  {
    path: "/login",
    name: "login",
    component: login
  },
  {
    path: "/index",
    name: "index",
    component: index
  },
  {
    path: "/home",
    component: home,
    redirect: "home",
    hidden: true,
    children: [
      {
        path: "door",
        name:'门户',
        component: () => import("@/components/door.vue")
      },
      {
        path: "interactive",
        name:'分系统交互管理',
        component: () => import("@/components/interactive.vue")
      }
    ]
  }
];
const router = new Router({
  mode: "history",
  // base: URLconfig.routerBase,
  routes
});
// router.beforeEach((to, from, next) => {
//   next();
// })
export default router;