### 需求描述 Feature Description <!-- 您的想法是否与已有问题有关? 请描述。简明扼要的描述你的需求、想法、建议。--> <!-- Is your feature request related to a problem? Please describe. This should be a clear and concise description of what the problem is. --> 可以通过 `setGlobalOptions` 配置全局的 onError 钩子 ### 建议的解决方案 Proposed Solution <!-- 描述您想要的解决方案。简明扼要的描述你想要的 --> <!-- Describe the solution you'd like. This should be a clear and concise description of what you want to happen. --> 支持通过 `setGlobalOptions` 将 onError 作为全局钩子注册,每个 `useRequest` 在触发出错时都会调用 ### 其他信息 Other information <!-- 如截图等其他信息可以贴在这里。 --> <!-- Other information such as screenshots can be posted here. -->