MockControl
Foxman-Plugin
如何启用
- cd path/to/project(以启用 foxman 的工程)
- npm i --save-dev foxman-plugin-mock-control
- 在 foxman.config.js 中新增 plugins 的配置项
const MockControl = ;moduleexports = ... plugins: /** * 在 mock json 的同目录下找,文件名一样 的 .js 文件 * @param dataPath * @returns {string|*|XML|void} */ { return dataPath; } ...