Merge branch 'dev' of https://github.com/d2-projects/d2-admin into dev
This commit is contained in:
commit
cfa627e06e
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue