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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
| /*
| * @Description:
| * @Author: 王旭
| * @Date: 2023-02-27 11:30:56
| * @LastEditTime: 2023-02-28 20:45:23
| * @LastEditors: 王旭
| */
| import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";
| import Home from "../views/Home.vue";
| import CIM from "../views/CIM.vue";
| import ParallelWorld from "../views/ParallelWorld.vue";
| import WebGIS from "../views/WebGIS.vue";
| import HomeDoc from "../views/HomeDoc.vue";
| import index from "../views/Index.vue";
| import solution from "../views/Solution.vue";
| import serviceSupport from "../views/ServiceSupport.vue";
| // import sceoll from "../views/sceoll.vue";
| const routes: Array<RouteRecordRaw> = [
| {
| path: "/",
| name: "Home",
| component: Home,
| redirect: "/index",
| children: [
| {
| path: "/index",
| component: index,
| name: "index",
| meta: {
| title: "首页",
| // requireAuth: true, // 标识该路由是否需要登录
| },
| },
| {
| path: "/solution",
| component: solution,
| name: "solution",
| meta: {
| title: "解决方案",
| // requireAuth: true, // 标识该路由是否需要登录
| },
| },
| {
| path: "/CIM",
| component: CIM,
| name: "CIM",
| meta: {
| title: "CIM",
| // requireAuth: true, // 标识该路由是否需要登录
| },
| }, {
| path: "/ParallelWorld",
| component: ParallelWorld,
| name: "ParallelWorld",
| meta: {
| title: "ParallelWorld",
| // requireAuth: true, // 标识该路由是否需要登录
| },
| },
| {
| path: "/WebGIS",
| component: WebGIS,
| name: "WebGIS",
| meta: {
| title: "WebGIS",
| // requireAuth: true, // 标识该路由是否需要登录
| },
| },
|
| {
| path: "/HomeDoc",
| component: HomeDoc,
| name: "HomeDoc",
| meta: {
| title: "HomeDoc",
| // requireAuth: true, // 标识该路由是否需要登录
| },
| },
|
|
|
|
| {
| path: "/serviceSupport",
| component: serviceSupport,
| name: "serviceSupport",
| meta: {
| title: "服务与支持",
| // requireAuth: true, // 标识该路由是否需要登录
| },
| },
| ],
| },
| // {
| // path: "/sceoll",
| // component: sceoll,
| // name: "sceoll",
| // meta: {
| // title: "首页",
| // // requireAuth: true, // 标识该路由是否需要登录
| // },
| // },
| ];
|
| const router = createRouter({
| history: createWebHashHistory(),
| routes,
| });
|
| export default router;
|
|