我看了ant design pro 文档 上面 说是 import router from 'umi',直接router.push('/xxxx');新版本中并没有router。现在需求是if(true){ router.push('/xxxx')}
请问用什么方法来实现当前页面跳转### 问题描述
粘贴代码文本(请勿用截图)
新版本叫 history
import { history } from 'umi'; // 跳转到指定路由 history.push('/list');
2.1m questions
2.1m answers
60 comments
56.6k users