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