仪表盘
版本库
文件存储
活动
搜索
登录
main
/
smart-web
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
1
lzhe
2024-06-06
4c810c1feb3f78c458084d73e89adc6c4f2256f1
[smart-web.git]
/
src
/
api
/
index.js
1
2
3
4
5
6
7
8
9
10
11
/**
* @description 自动import导入所有 api 模块
*/
const files = require.context('./model', false, /\.js$/)
const modules = {}
files.keys().forEach((key) => {
modules[key.replace(/(\.\/|\.js)/g, '')] = files(key).default
})
export default modules