You've already forked template-MP
新增:全量优化
This commit is contained in:
15
api/index.js
Normal file
15
api/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* API统一导出入口
|
||||
*/
|
||||
// 导入网络请求实例
|
||||
import http from './request.js'
|
||||
// 导入各业务模块
|
||||
import user from './modules/user.js'
|
||||
// 导出网络请求实例
|
||||
export { http }
|
||||
// 导出各业务模块
|
||||
export { user }
|
||||
// 默认导出包含所有模块的对象
|
||||
export default {
|
||||
user,
|
||||
}
|
||||
Reference in New Issue
Block a user