inleft
2022-03-03 0b0125884c449378a2e80f888a43a2d20974c8df
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'
I 6 import main2 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'
d3f921 17
I 18
19 export const asyncRouterMap = [{
ad2b70 20         path: '*',
L 21         // redirect: '/404',
22         component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404'),
23         hidden: true
d3f921 24     },
I 25     {
ad2b70 26         path: '/',
41b36f 27         component: baseLayout,
ad2b70 28         children: [{
L 29                 path: '/',
30                 component: main1,
31                 children: [{
32                         path: '/',
81c155 33                         name: "articleList",
41b36f 34                         component: articleList,
b505f3 35                         props: true
ad2b70 36                     },
L 37                     {
38                         path: '/box1',
39                         component: box1,
56a4b8 40                     },
I 41                     {
81c155 42                         name: "tagTime",
56a4b8 43                         path: '/tagTime',
I 44                         component: tagTime,
81c155 45                     },
I 46                     {
47                         name: "comment",
48                         path: '/comment',
49                         component: comment,
56a4b8 50                     },
I 51                     {
52                         path: '/tagInfo',
53                         component: tagInfo,
54                     },
55                     {
81c155 56                         name: "mdDetail",
56a4b8 57                         path: '/mdDetail',
I 58                         component: mdDetail,
b505f3 59                     }, {
f60b31 60                         path: '/link',
b505f3 61                         component: boxFriend,
ad2b70 62                     }
L 63                 ]
64             },
65             {
4b854c 66                 path: '/articleList',
ad2b70 67                 component: main1,
L 68                 children: [{
69                     path: '/',
81c155 70                     name: "articleList",
41b36f 71                     component: articleList,
ad2b70 72                 }]
L 73             },
b505f3 74
ad2b70 75             {
L 76                 path: '/main2',
77                 component: main2,
78             },
56a4b8 79             {
I 80                 path: '/main3',
81                 component: main3,
82             },
06ee76 83             {
f60b31 84                 path: '/link',
I 85                 component: link,
6d1057 86             }, {
I 87                 path: '/login',
88                 component: login,
06ee76 89             },
b505f3 90
d3f921 91
I 92         ]
93     },
ad2b70 94
L 95
d3f921 96 ]
ad2b70 97
d3f921 98
I 99 /**
100  * 基础路由
101  * @type { *[] }
102  */
ad2b70 103 export const constantRouterMap = [{
d3f921 104         path: '/404',
I 105         component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404')
106     }
107
108 ]