-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathroutes.ts
26 lines (26 loc) · 901 Bytes
/
routes.ts
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
/*
* @Author: Siwen
* @Date: 2020-05-27 10:37:49
* @LastEditors: Siwen
* @LastEditTime: 2020-06-02 14:04:03
* @Description: 路由文件
*/
const routes = [
{
path: '/',
component: '@/pages/index',
routes: [
{ path: '/', redirect: '/discover/recommend' },
{ path: '/discover/recommend', component: '@/pages/discover/Recommend' },
{ path: '/discover/toplist', component: '@/pages/discover/Toplist' },
{ path: '/my',component: '@/pages/my/My' },
{ path: '/friend',component: '@/pages/friend/Friend' },
{ path: '/user/home',component: '@/pages/user/home' },
{ path: '/user/message',component: '@/pages/user/message' },
{ path: '/user/level',component: '@/pages/user/level' },
{ path: '/user/member',component: '@/pages/user/member' },
{ path: '/playlist',component: '@/pages/playlist' },
]
},
]
export default routes