-
### 🧐 ant design pro v4 实现路由,菜单完全由后端返回,不在router.js中配置
估计大家有跟我一样从Vue转过来React使用 ant design pro v4 想实现动态路由,动态菜单的,即不在router.js中配置需要动态变化的路由和菜单信息, 由于ant design的封装比较厉害,实现起来不像Vue那样简单直接,看了很多issue, 结合自己的思路实…
-
关于qiankun父子通讯时使用useModel获取props时,@@qiankunStateFromMaster'无效的挂接。
在使用plugin-qiankun时,父子应用通讯中使用useModel('@@qiankunStateFromMaster')获取主应用的传的props时,报Invalid hook call. Hooks can only be called insi…
-
[vg@localhost ]$ node -v
v12.21.0
[vg@localhost ]$ npm -v
6.14.11
[vg@localhost ]$ npm create umi myApp
[vg@localhost myApp]$ npm install
npm WARN deprecated react-router-redux@5.0.0-alpha.9: Th…
-
## What happens?
众所周知,在 `dva` 中,通过如下方式可以配置 `history`:
````
import dva from 'dva';
const app = dva({
history: createHistory()
});
app.router(() => 1);
app.start('#root');
````
…
imhxc updated
3 years ago
-
### 🧐 问题描述
pro v4版本,移除package-lock.json和node_modules重新install之后,run lint报错
### 💻 示例代码
```javascript
// .eslintrc.js
module.exports = {
extends: [require.resolve('@umijs/fabric/dist/eslint')],
…
-
能否配置完返回一个新对象,使用新对象发起请求
现在有很多组件,是平级的,并没有一个统一的父级。
使用UseRequestProvider不是很方便。
-
### 🐛 bug 描述
重新编译项目,出现`Objects are not valid as a React child (found: object with keys {submitButtonProps}) ......`
### 📷 复现步骤
开始排查:
1、进ProTable源码,甚至全局搜索,都无法找到`submitButtonProps`
2、哪怕注释protab…
-
### 🧐 问题描述
我现在场景是在一个类组件中使用 intl.formatMessage 函数做多语言处理,但是使用eslint报错了,props里的intl报错了,我不知道给什么类型或者需要继承哪个interface。希望能给个简单的示例。
### 💻 示例代码
![image](https://user-images.githubusercontent.com/105573…
-
## Feature Request
**Is your feature request related to a problem? Please describe:**
ahooks is an upgrade for Umi hook
**Describe the feature you'd like:**
Use ahooks: https://ahooks.js.o…
-
## What happens?
1. antd row col组件一开始加载会默认100% 沾满
2. 部署后直接访问端口加载速度正常,访问代理后的加载缓慢
## 相关环境信息
- **Umi 版本**:3.2.15
- **Node 版本**:12.14.0
## 配置信息
```
config.ts
export default defineConfig({…