-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
79 lines (71 loc) · 1.56 KB
/
index.js
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
import NotFound from "./notFound.js";
import Home from "../component/article/home";
import About from '../component/About/About';
import FriendLink from '../component/FriendLink/FriendLink';
import Career from '../component/Career/Career';
import Interact from '../component/Interact/Interact'
// IP 端口 - 测试
// export const fileIp = {
// defaultIp: "http://49.233.56.6:8080",
// onLineIp: "https://www.modestfun.com"
// }
export const fileIp = {
defaultIp: "https://www.modestfun.com:8080",
onLineIp: "https://www.modestfun.com"
}
// IP 端口 - 开发
// export const fileIp = {
// defaultIp: "http://localhost:8840",
// otherIp: "http://localhost:9969",
// onLineIp: "http://localhost:3000"
// }
// 主要路由
export const mainRoutes = [
{
path: "/",
component: Home,
exact: true
},
{
path: "/404",
component: NotFound,
exact: true
},
// {
// path: "/login",
// component: Login,
// exact: true
// },
{
path: "/tags/:name",
component: Home,
exact: true
},
{
path: "/career",
component: Career,
exact: true
},
{
path: "/interact",
component: Interact,
exact: true
},
{
path: "/friendLink",
component: FriendLink,
exact: true
},
{
path: "/about",
component: About,
exact: true
},
]
// 二级路由
export const blogRoutes = [
{
path: "/blog/:id",
exact: true
}
]