How to catch an error (message) after a request

后端 未结 0 1624
心在旅途
心在旅途 2020-12-19 15:44

I make a request, and if the status is not 200, I should throw an error with an error message

    apiService.createNewUser(data).then((response) => {
              


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