仪表盘
版本库
文件存储
活动
搜索
登录
main
/
smart-web
概况
操作记录
提交次数
目录
文档
分支
对比
blame
|
历史
|
原始文档
1
lzhe
2024-09-26
7d59e8e2c727dd49d9552a8febc2af47c5b95a69
[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