仪表盘
版本库
文件存储
活动
搜索
登录
main
/
smart-web
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
1
李喆(开发组)
2025-03-18
c978996d3e0390c0050479be4684af895cfb72cd
[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