![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
前端
文章平均质量分 76
M_H5211
在学校滑水
展开
-
umi antd跨组件数据共享 快速上手理解与应用
搜索关键词umi connect 看到了原创 2021-06-01 23:48:02 · 1369 阅读 · 0 评论 -
处理umi国际化useIntl不能在类组件中使用
问题描述使用umi中useIntl在类组件中时报错。Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:You might have mismatching versions of React and the renderer (such as React DOM) Y.原创 2021-05-16 20:11:51 · 3979 阅读 · 2 评论 -
promise获取[[PromiseResult]]数据
问题描述promise catch中获取相应的数据(或许别人的catch中不需要获取数据 但是我需要QAQ) js中获取 promise [[PromiseResult]] 数据 promise catch 中获取响应内容 异步请求错误情况下获取相应数据实验情况请求成功走then这个路线 数据直接就是回调函数的参数,但是异常或者失败后走catch路线参数却不是相应的内容。在使用umi-request 请求后得到的一个400响应,虽然400了但是还是想拿到返回的数据,catch是ca.原创 2021-04-26 16:48:16 · 24095 阅读 · 2 评论