Skip to content

Commit

Permalink
fix: 修复请求缺少/api不走fake的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
greper committed Sep 1, 2020
1 parent d505583 commit 02d6db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/demo/d2-crud-plus/mock/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 02d6db3

Please sign in to comment.