仪表盘
版本库
文件存储
活动
搜索
登录
main
/
smart-web
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
Merge branch 'master' of http://122.9.151.159:9090/r/smart-web
lzhe
2024-09-09
a958e950dc675c7a3e9cbbbc66e6656669d3a34b
[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