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
| import { createRouter, createWebHashHistory } from 'vue-router'
| import HomePage from '../views/home/index.vue'
| import PageLayout from '../layout/pageLayout.vue'
| import { pathData } from '../assets/js/config'
| const router = createRouter({
| history: createWebHashHistory(import.meta.env.BASE_URL),
| routes: [
| {
| path: '/',
| redirect: '/index',
| },
| {
| path: '/index',
| name: 'layout',
| component: PageLayout,
| redirect: { name: 'home' },
| children: [
| {
| path: pathData.home,
| name: 'home',
| component: HomePage,
| meta: { showHeader: false },
| },
| {
| path: pathData.searchList,
| name: 'searchList',
| component: () => import('../views/searchList/index.vue'),
| },
| {
| path: pathData.detailsPage,
| name: 'detailsPage',
| component: () => import('@/views/detailsPage/index.vue'),
| },
| ],
| },
| {
| path: pathData.ai,
| name: 'AI',
| component: () => import('@/views/ai/index.vue'),
| },
| {
| path: pathData.aiDetails,
| name: 'aiDetails',
| component: () => import('@/views/ai/aiDetails.vue'),
| },
| ],
| })
|
| export default router
|
|