提交 4d156e8a 编写于 作者: G Gcaufy

fix: 更新守卫文档

上级 749a1b80
* [Usage](/router/usage.md)
* [配置](/router/config.md)
* [导航守卫](/router/guard.md)
**Coming soon**
* [Usage](./doc/usage.md)
* [配置](./doc/config.md)
* [导航守卫](./doc/guard.md)
* API
* [router](/router/router.md)
* [实例](/router/instance.md)
* [router](./doc/router.md)
* [实例](./doc/instance.md)
......@@ -10,9 +10,15 @@ tabPages = ['CourseList']
routeMap = {
SplashScreen: '/pages/SplashScreen',
CourseList: '/pages/tabBar/courseList/CourseList',
ClassList: { name: 'CourseList', query: { courseType: 'class' } },
BookList: { path: '/pages/BookList', query: { info: { name: 'roma' } }, meta: 2},
CityList: { handler: ({ query }) => ({ path: '/pages/CityList', query }) },
ClassList: {
name: 'CourseList', query: { courseType: 'class' }
},
BookList: {
path: '/pages/BookList', query: { info: { name: 'roma' } }, meta: 2
},
CityList: {
handler: ({ query }) => ({ path: '/pages/CityList', query })
},
Courses: 'CourseList'
}
```
......
......@@ -18,7 +18,10 @@ const routeMap = {
SplashScreen: '/pages/SplashScreen',
CourseList: '/pages/tabBar/courseList/CourseList',
CourseDetail: '/pages/CourseDetail','
CourseOnlineDetail: { name: 'CourseDetail', query: { courseType: 'online' } },
CourseOnlineDetail: {
name: 'CourseDetail',
query: { courseType: 'online' }
},
}
const config = { homePage, tabPages, routeMap }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册