Skip to content

Commit

Permalink
Fix the query string missing bug in forward #259 (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex1990 authored and sorrycc committed Aug 12, 2017
1 parent ad0c038 commit 65c767f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function createProxy(method, path, target) {
return method ? req.method.toLowerCase() === method.toLowerCase() : true;
},
forwardPath(req) {
let matchPath = req.baseUrl;
let matchPath = req.originalUrl;
const matches = matchPath.match(path);
if (matches.length > 1) {
matchPath = matches[1];
Expand Down

0 comments on commit 65c767f

Please sign in to comment.