Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(requestRecord.mock.js) remove /api/rule #10919

Closed
wants to merge 1 commit into from
Closed

fix(requestRecord.mock.js) remove /api/rule #10919

wants to merge 1 commit into from

Conversation

zhangrenyang
Copy link
Contributor

When invoking the /api/rule interface, the code in mock\listTableList.ts should be used, which supports CRUD (Create, Read, Update, Delete) operations on data.

export default {
  'GET /api/rule': getRule,
  'POST /api/rule': postRule,
};

However, due to the existence of the code in mock\requestRecord.mock.js, it overrides the code in mock\listTableList.ts, causing the data to remain unchanged after performing CRUD operations, and then querying again. As a result, it is impossible to observe the effects of the operations.

'GET /api/rule': {}

@github-actions
Copy link

github-actions bot commented Aug 27, 2023

😭 Deploy PR Preview failed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant