inleft
2022-03-04 74344a2ec388b78fe906a22c31f8fdb77fc60b12
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: '*',
74344a 21         redirect: '/404',
I 22         // component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404'),
ad2b70 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: '/',
74344a 33                         name: "home",
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,
74344a 62                     },
I 63                     {
64                         path: '/404',
65                         component: () => import('@/views/exception/404')
ad2b70 66                     }
L 67                 ]
68             },
69             {
4b854c 70                 path: '/articleList',
ad2b70 71                 component: main1,
L 72                 children: [{
73                     path: '/',
81c155 74                     name: "articleList",
41b36f 75                     component: articleList,
ad2b70 76                 }]
L 77             },
b505f3 78
ad2b70 79             {
L 80                 path: '/main2',
81                 component: main2,
82             },
56a4b8 83             {
I 84                 path: '/main3',
85                 component: main3,
86             },
06ee76 87             {
f60b31 88                 path: '/link',
I 89                 component: link,
6d1057 90             }, {
I 91                 path: '/login',
92                 component: login,
06ee76 93             },
b505f3 94
d3f921 95
I 96         ]
97     },
ad2b70 98
L 99
d3f921 100 ]
ad2b70 101
d3f921 102
I 103 /**
104  * 基础路由
105  * @type { *[] }
106  */
ad2b70 107 export const constantRouterMap = [{
74344a 108         // path: '/404',
I 109         // component: () => import( /* webpackChunkName: "fail" */ '@/views/exception/404')
d3f921 110     }
I 111
112 ]