Skip to content

Commit

Permalink
[fix]data in url;
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyLover committed May 9, 2019
1 parent 8b18119 commit a961928
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified fe/public/favicon.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/getMock.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function recursionMock(mockPath, mockid, mock = {}, isSet = false) {
recursionMock(filepath, nextid, mock, isSet);
}

if (filename === 'data') {
if (filename === 'data' && !isDir) {
mockid = isSet ? mockid : dirname(mockid);

let data = getMockData(filepath);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mock-server-local",
"version": "1.8.6",
"version": "1.8.7",
"description": "Mock your apis with a node server",
"main": "index.js",
"bin": {
Expand Down

0 comments on commit a961928

Please sign in to comment.