文章目录
- 1. 配置路由
- 2. 用户模块管理
- 3. Mybatis-Plus
- 常用注解
1. 配置路由
1.1 路由规则
-
定义路由占位符
-
定义路由规则
通过children关键字,实现父子组件的定义const routes = [
{path: ‘/’, redirect: ‘/login’},
{path: ‘/login’, component: Login},
{path: ‘/elementUI’, component: ElementUI},
{path: ‘/home’, component: Home, children:[
{path: ‘/user’, component: User},
{path: ‘/item’, component: Item},
{path: ‘/itemCat’, component: ItemCat}
]},
]
2. 用户模块管理
2.1 用户列表展现
2.1.1 接口文档说明
- 请求路径: /user/list
- 请求类型: GET
- 请求参数: 后台使用PageResult对象接收
- 请求案例: http://localhost:8091/user/listquery=查询关键字&pageNum=1&