We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
相关代码:https://github.com/CareyToboo/ovine/blob/master/packages/core/src/utils/request/index.ts requestErrorCtrl函数在处理异常响应时,一定会抛出异常,而框架会捕捉异常并通过toast进行显示,这一行为无法禁用。 如果想在全局的onError方法中解析并显示错误信息,就会同时出现2条toast信息,希望能有办法自行配置,在遇到错误时是否抛出异常。
requestErrorCtrl
The text was updated successfully, but these errors were encountered:
用户名和密码错误,是怎么出现的这个提示? 这边出现两条toast是不正常的。
Sorry, something went wrong.
可以直接在全局的 onError 处理中抛出 throw new errors_1.ServerError(errorMsg, response); 我这样试下来是一个弹框
No branches or pull requests
相关代码:https://github.com/CareyToboo/ovine/blob/master/packages/core/src/utils/request/index.ts
requestErrorCtrl
函数在处理异常响应时,一定会抛出异常,而框架会捕捉异常并通过toast进行显示,这一行为无法禁用。如果想在全局的onError方法中解析并显示错误信息,就会同时出现2条toast信息,希望能有办法自行配置,在遇到错误时是否抛出异常。
The text was updated successfully, but these errors were encountered: