This commit is contained in:
FairyEver 2020-09-01 17:21:24 +08:00
commit cfa627e06e
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ const apiList = req(require.context('../', true, /mock\.js$/))
apiList.forEach(apiFile => {
for (const item of apiFile) {
mock
.onAny(new RegExp('^' + item.path))
.onAny(new RegExp('^/api' + item.path))
.reply(config => {
console.log('------------fake request start -------------')
console.log('request:', config)