-
umi的src/app.ts的rootContainer函数还是很有用处的,比如包裹antd和umi request的全局配置等行为。
但是使用了该插件之后,rootContainer的AliveScopeContainer行为会屏蔽app.ts里的rootContainer的渲染,导致没有途径再包裹全局配置。
-
Cannot use 'in' operator to search for 'URLSearchParams' in undefined
TypeError: Cannot use 'in' operator to search for 'URLSearchParams' in undefined
at Module../node_modules/_whatwg-fetch@3.0.…
-
> 如果 service 是 string 、 object 、 (...args)=> string|object,则自动使用 umi-request 来发送请
求。
看到文档里 service 可以是一个 function,但是按照下面的用法会报错:
```javascript
const { loading, run } = useRequest((value) => ({
…
-
今天看见最新版本修复了该问题,重装依赖后,发现原本正常的chrome也无效了。
@chenshuai2144
-
类似这个: https://github.com/AvraamMavridis/react-window-communication-hook
-
-
### 🐛 bug 描述
研发环境能拿到值,本地打的包放到服务器也没问题,但是走了Jenkins之后拿不到值了
### 📷 复现步骤
1、右边下拉选择条件
2、点击查询
3、本地环境和本地的dist都能正常拿到字段值,Jenkins打包拿不到
### 💻 复现代码
```tsx
{
// 配送方/分配状态/发起分拣/工具/是否拆单
title…
-
### pro-table的columns的title不支持()=>ReactNode,开发环境是正常的,打包编译之后线上不行,根本不进入函数
### 💻 复现代码
**原函数**
```ts
// 送达/取货/下单时间 history:实际送达时间
// title: (_) => {
// console.log(_);
…
-
onSuccess函数,第一个参数打印是undefined,用的事官网的例子,全是官网的代码,亲测
-
## What happens?
tsx 提示 `Definition for rule '@typescript-eslint/no-angle-bracket-type-assertion' was not found`,尝试添加 rule 无效:
```json
{
"extends": "eslint-config-umi",
"rules": {
…