Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/fes-preset-built-in/src/plugins/features/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default (api) => {
return next();
}
// 请求以 cgiMock.prefix 开头,匹配处理
const matchRequet = requestList.find((item) => req.path.search(item.url) !== -1);
const matchRequet = requestList.find((item) => req.path.search(item.url) !== -1 && req.method === (item.method || 'GET').toUpperCase());
if (!matchRequet) {
return next();
}
Expand Down