Can I shorten catch code together in nested axios api code?

后端 未结 0 679
轻奢々
轻奢々 2020-12-21 13:53

I wrote an axiosInstance api code nested like this. There are 2 APIs(api1, api2) nested like this, and the action with catching error is same. Then can I catch api1 and api2

相关标签:
回答
  • 消灭零回复
提交回复
热议问题