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