接口初始化 第一版

This commit is contained in:
yuping
2022-11-21 15:53:20 +08:00
parent 8fa76327be
commit 039042f607
4 changed files with 7 additions and 9 deletions

View File

@@ -8,5 +8,5 @@ const array = Object.keys(context).map(path =>
url: module[url].split(' ')[0],
method: module[url].split(' ').length > 1 ? module[url].split(' ')[1] : 'get',
response: context[path].default[url]
}))).reduce((r, m) => [...r, ...m])
createProdMockServer([...array])
}))).reduce((r, m) => [...r, ...m]);
createProdMockServer([...array])