mock-esm
v0.0.3
Published
mock接口走easy mock平台
Downloads
2
Readme
使用方法:
import { replaceDomain } from 'mock-em';
let mockUrl = ''; //easy mock项目地址
let isMock = false; //全模块mock,要么单个接口的参数中增加isMock要么这里全局设置这个api文件的isMock
requestHandler(config, ctx)
{
replaceDomain(isMock, config, mockUrl,ctx);
return config;
}