mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-04-05 19:41:43 +08:00
17 lines
415 B
JavaScript
17 lines
415 B
JavaScript
/**
|
||
* @copyright chuzhixin 1204505056@qq.com
|
||
* @description 导入所有 controller 模块,npm run serve时在node环境中自动输出controller文件夹下Mock接口,请勿修改。
|
||
*/
|
||
|
||
const { handleMockArray } = require("./utils");
|
||
|
||
const mocks = [];
|
||
const mockArray = handleMockArray();
|
||
mockArray.forEach((item) => {
|
||
const obj = require(item);
|
||
mocks.push(...obj);
|
||
});
|
||
module.exports = {
|
||
mocks,
|
||
};
|