at present, the project has encountered a minor problem:
when the network speed is too slow, the user clicks the button unresponsive when the user submits or modifies the operation, so the user will continue to click a few more times. At this time, the front-end page will send a lot of requests to the backend, resulting in a series of problems.
there are two solutions I can think of so far.
the first is that the user clicks a button to add the loading, data request and then removes the loading. But there are two minor problems with this.
(1) if it"s a button in the list, you can"t add loading
2loadingloading
second: use axios"s cancel, to execute the same request only once, and cancel all the redundant ones.
my own writing method has not been perfect, and I will encounter some problems if I find a demo on the Internet.
to sum up, I am still a little confused. I have a good idea for the trouble passing by. =