From 02d6db3bebf56008dfb47faef1d44c15c41b03ca Mon Sep 17 00:00:00 2001 From: "xiaojunnuo@126.com" Date: Tue, 1 Sep 2020 17:17:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E7=BC=BA=E5=B0=91/api=E4=B8=8D=E8=B5=B0fake=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/d2-crud-plus/mock/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/demo/d2-crud-plus/mock/index.js b/src/views/demo/d2-crud-plus/mock/index.js index 73315e7e2..d088f5aba 100644 --- a/src/views/demo/d2-crud-plus/mock/index.js +++ b/src/views/demo/d2-crud-plus/mock/index.js @@ -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)