inleft
2022-08-12 e4f0862bd8af0ac1c7aab59904b69dd071526aff
commit | author | age
41b36f 1 import baseLayout from '../components/layouts/baseLayout.vue'
I 2
019990 3 import articleList from '../components/group/articleListScorll.vue'
41b36f 4
846bd0 5 import main1 from '../components/swichLabel/main1-home.vue'
56fe69 6 import platform from '../components/swichLabel/main2-music-search.vue'
41b36f 7 import main3 from '../components/swichLabel/main3-show.vue'
846bd0 8 import link from '../components/swichLabel/main4-link.vue'
I 9 import login from '../components/swichLabel/main5-login.vue'
10 import comment from '../components/swichLabel/main6-comment.vue'
41b36f 11
I 12 import box1 from '../components/mini/box1-info.vue'
13 import tagTime from '../components/mini/tagTime.vue'
14 import tagInfo from '../components/mini/tagInfo.vue'
b505f3 15 import boxFriend from '../components/mini/box-friend.vue'
41b36f 16 import mdDetail from '../components/mini/mdDetail.vue'
859ec7 17 import videoDetail from '../components/mini/box16-videoDetail.vue'
I 18 import videoList from '../components/mini/box14-video.vue'
d3f921 19
I 20
21 export const asyncRouterMap = [{
ad2b70 22         path: '*',
74344a 23         redirect: '/404',
I 24         // component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404'),
ad2b70 25         hidden: true
d3f921 26     },
I 27     {
ad2b70 28         path: '/',
41b36f 29         component: baseLayout,
ad2b70 30         children: [{
L 31                 path: '/',
32                 component: main1,
33                 children: [{
34                         path: '/',
74344a 35                         name: "home",
41b36f 36                         component: articleList,
b505f3 37                         props: true
ad2b70 38                     },
L 39                     {
40                         path: '/box1',
41                         component: box1,
56a4b8 42                     },
I 43                     {
81c155 44                         name: "tagTime",
56a4b8 45                         path: '/tagTime',
I 46                         component: tagTime,
81c155 47                     },
I 48                     {
49                         name: "comment",
50                         path: '/comment',
51                         component: comment,
56a4b8 52                     },
I 53                     {
54                         path: '/tagInfo',
55                         component: tagInfo,
56                     },
57                     {
81c155 58                         name: "mdDetail",
56a4b8 59                         path: '/mdDetail',
I 60                         component: mdDetail,
b505f3 61                     }, {
f60b31 62                         path: '/link',
b505f3 63                         component: boxFriend,
74344a 64                     },
I 65                     {
66                         path: '/404',
67                         component: () => import('@/views/exception/404')
ad2b70 68                     }
L 69                 ]
70             },
71             {
4b854c 72                 path: '/articleList',
ad2b70 73                 component: main1,
L 74                 children: [{
75                     path: '/',
81c155 76                     name: "articleList",
41b36f 77                     component: articleList,
ad2b70 78                 }]
L 79             },
b505f3 80
ad2b70 81             {
56fe69 82                 path: '/platform',
I 83                 component: platform,
859ec7 84                 children: [{
I 85                     path: '/',
86                     name: "videoList",
87                     component: videoList,
88                 },{
89                     path: '/videoDetail',
90                     name: "videoDetail",
91                     component: videoDetail,
92                 }]
ad2b70 93             },
56a4b8 94             {
I 95                 path: '/main3',
96                 component: main3,
97             },
06ee76 98             {
f60b31 99                 path: '/link',
I 100                 component: link,
6d1057 101             }, {
I 102                 path: '/login',
103                 component: login,
06ee76 104             },
b505f3 105
d3f921 106
I 107         ]
108     },
ad2b70 109
L 110
d3f921 111 ]
ad2b70 112
d3f921 113
I 114 /**
115  * 基础路由
116  * @type { *[] }
117  */
ad2b70 118 export const constantRouterMap = [{
74344a 119         // path: '/404',
I 120         // component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404')
d3f921 121     }
I 122
123 ]