From bbe917ffa576b65b72ea259440639583a4c2643a Mon Sep 17 00:00:00 2001 From: suxiaoxin Date: Tue, 10 Oct 2017 21:13:35 +0800 Subject: [PATCH 1/2] fix: postman basepath bug --- client/components/Postman/Postman.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/components/Postman/Postman.js b/client/components/Postman/Postman.js index 28b5e931..30024615 100755 --- a/client/components/Postman/Postman.js +++ b/client/components/Postman/Postman.js @@ -202,11 +202,16 @@ export default class Run extends Component { pathParam.forEach(item => { path = path.replace(`:${item.name}`, item.value || `:${item.name}`); }); + if(urlObj.pathname){ + if(urlObj.pathname[urlObj.pathname.length - 1] !== '/'){ + urlObj.pathname += '/' + } + } const href = URL.format({ protocol: urlObj.protocol || 'http', host: urlObj.host, - pathname: urlObj.pathname ? URL.resolve(urlObj.pathname, path) : path, + pathname: urlObj.pathname ? URL.resolve(urlObj.pathname, '.' + path) : path, query: this.getQueryObj(query) }); From e1e41b4c576297e53f7521d702bf1b9e8f82427b Mon Sep 17 00:00:00 2001 From: suxiaoxin Date: Tue, 10 Oct 2017 21:20:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20npm=20=E4=BE=9D=E8=B5=96=20bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 786e9e1a..e170c479 100755 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "clipboard": "^1.7.1", "fs-extra": "^3.0.1", "happypack": "^4.0.0-beta.5", + "json-schema-faker": "^0.5.0-rc11", "json5": "^0.5.1", "jsonwebtoken": "^7.4.1", "koa": "^2.0.0",