Where can I modify the back-end API of Antd?

Today, I want to learn and use Antd to write a user login page. Antd officially provides Demo directly npm start . The structure of the source code I look at is as follows:

clipboard.png

I want to modify the fakeAccountLogin here to interact with the local database to verify and find the source code, but I can"t find / api/login/account where is the module corresponding to this API?

can an experienced god give me some advice? thank you very much. (PS: is waiting for you online)

Mar.20,2021

1. If you want to change the data source and call the real api, modify the request address in .uplohogrc.mock.js. You can refer to https://codeshelper.com/a/11.
2, modify the interface of the api calling module or business logic api to show login, page under routes, status under models, etc., and transfer api, to services. It is recommended to take a look at the official documents

first.
Menu