request.js http封装(此处仅用于测试)
1 | export default const request = (params) => { |
BaseApi 基础增删该查类
1 | import request from './request.js |
继承基础类【例如用户管理】
1 |
|
项目内部调用接口
1 | import userApi from './userApi' |
1 | export default const request = (params) => { |
1 | import request from './request.js |
1 |
|
1 | import userApi from './userApi' |