JavaScript/react/umi/路由

来自康健生活

引言

跳转

Js 跳转

import router from 'umi/router'
...
const getIndexPage = () => {
  router.push('/login')
}
...