康凯
2022-05-23 db2f5ec6d7eeff6d7cc67a846be6e22cf3636edc
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
import Vue from 'vue'
import VueRouter from 'vue-router'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
import '../src/assets/icon/iconfont.css'
 
import Meta from "vue-meta";
 
import App from './App.vue'
import LayoutList from './views/layout/listIndex'
import LayoutSearch from './views/layout/searchIndex'
 
import HomePage from './views/home'
import SearchIndex from './views/search/index'
import SearchResults from './views/search/results'
 
import SceneryList from './views/scenery/list'
import SceneryDetail from './views/scenery/detail'
import SceneryDetailImage from './views/scenery/detailImage'
import SceneryDetailVideo from './views/scenery/detailvideo'
 
import MemoryList from './views/memory/list'
import MemoryDetail from './views/memory/detail'
import MemoryDetailImage from './views/memory/detailImage'
import MemoryDetailVideo from './views/memory/detailvideo'
 
import SpiritList from './views/spirit/list'
import SpiritDetail from './views/spirit/detail'
import SpiritDetailImage from './views/spirit/detailImage'
import SpiritDetailVideo from './views/spirit/detailvideo'
 
import PersonageList from './views/personage/list'
import PersonageDetail from './views/personage/detail'
import PersonageDetailImage from './views/personage/detailImage'
import PersonageDetailVideo from './views/personage/detailvideo'
 
Vue.config.productionTip = false
 
const routes = [
    {
        name: 'default', path: '/', redirect: '/home', meta: {
            title: '首页'
        }
    },
    {name: 'home', path: '/home', component: HomePage},
    {
        name: 'search', path: '/search', component: LayoutSearch,
        meta: {
            title: '数据检索'
        },
        children: [
            {name: 'search-index', path: 'index', component: SearchIndex},
            {name: 'search-results', path: 'results', component: SearchResults},
        ]
    },
    {
        name: 'scenery', path: '/scenery', component: LayoutList,
        meta: {
            title: '红色景区库'
        },
        children: [
            {name: 'scenery-list', path: 'list', component: SceneryList},
        ],
    },
    {
        name: 'scenery', path: '/scenery', component: App,
        meta: {
            title: '红色景区库'
        },
        children: [
            {name: 'scenery-detail', path: 'detail', component: SceneryDetail},
            {name: 'scenery-detail-image', path: 'detail/image', component: SceneryDetailImage},
            {name: 'scenery-detail-video', path: 'detail/video', component: SceneryDetailVideo},
        ],
    },
    {
        name: 'memory', path: '/memory', component: LayoutList,
        meta: {
            title: '红色记忆库'
        },
        children: [
            {name: 'memory-list', path: 'list', component: MemoryList},
        ],
    },
    {
        name: 'memory', path: '/memory', component: App,
        meta: {
            title: '红色记忆库'
        },
        children: [
            {name: 'memory-detail', path: 'detail', component: MemoryDetail},
            {name: 'memory-detail-image', path: 'detail/image', component: MemoryDetailImage},
            {name: 'memory-detail-video', path: 'detail/video', component: MemoryDetailVideo},
        ],
    },
    {
        name: 'spirit', path: '/spirit', component: LayoutList,
        meta: {
            title: '红色精神库'
        },
        children: [
            {name: 'spirit-list', path: 'list', component: SpiritList},
        ],
    },
    {
        name: 'spirit', path: '/spirit', component: App,
        meta: {
            title: '红色精神库'
        },
        children: [
            {name: 'spirit-detail', path: 'detail', component: SpiritDetail},
            {name: 'spirit-detail-image', path: 'detail/image', component: SpiritDetailImage},
            {name: 'spirit-detail-video', path: 'detail/video', component: SpiritDetailVideo},
        ],
    },
    {
        name: 'personage', path: '/personage', component: LayoutList,
        meta: {
            title: '红色人物库'
        },
        children: [
            {name: 'personage-list', path: 'list', component: PersonageList},
        ],
    },
    {
        name: 'personage', path: '/personage', component: App,
        meta: {
            title: '红色人物库'
        },
        children: [
            {name: 'personage-detail', path: 'detail', component: PersonageDetail},
            {name: 'personage-detail-image', path: 'detail/image', component: PersonageDetailImage},
            {name: 'personage-detail-video', path: 'detail/video', component: PersonageDetailVideo},
        ],
    },
];
const router = new VueRouter({
    routes
});
 
Vue.use(VueRouter);
Vue.use(MintUI);
Vue.use(Meta);
 
new Vue({
    render: h => h(App),
    router
}).$mount('#app')