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
| import { RouteConfig } from "types";
| import Layout from "@/layout/index.vue";
|
| const routers: RouteConfig[] = [
| {
| path: "/",
| redirect: "/login",
| meta: {
| sort: 100
| },
| component: Layout,
| children: [
| {
| path: "/index",
| name: "index",
| meta: {
| title: "全景数据",
| icon: "menu-home",
| sort: 19,
| keepAliveName: "AppIndex"
| },
| component: () => import("@/views/index/index.vue")
| },
| {
| path: "/redirect",
| name: "redirect",
| meta: {
| title: "redirect",
| icon: "zx-1-1",
| sort: 9,
| hidden: true
| },
| component: () => import("@/views/redirect/index.vue")
| }
| ]
| }
| ];
|
| export default routers;
|
|