After Mini Program modified the submitted form, he was unable to re-consult the form information interface (refresh)?

problem description

question such as question: there is a user information table in the project. After editing and modifying the table, the page information needs to be refreshed. Mini Program cannot re-request this API?

the environmental background of the problems and what methods you have tried

first of all, the page has a getInfo interface for obtaining user information, and then when I edit and modify the user information and submit it to the background, I re-request the getInfo interface again and find that the request cannot be made (when the breakpoint is made, there is no method to call the interface)?

related codes

/ / Please paste the code text below (do not replace the code with pictures)
in fact, the process is not complicated, it"s just an API for obtaining information and modifying it. In the callback successful method of modifying the information interface, call the API to obtain information again, and the code will not be affixed

.

what result do you expect? What is the error message actually seen?

can achieve the effect of refreshing page information

found the reason. It"s not Mini Program"s pot, but I have a switch every time I call the API (to prevent repeated requests). After submitting the modification, the reason why it is not enabled correctly

Apr.03,2021
Menu