最近需要用到路由重定向,记录两种:
1.vue-router
{path:'/', redirect:'../xxxx/xxxx'}
2.Umijs
import Redirect from 'umi/redirect';
<Redirect to="/login" />
最近需要用到路由重定向,记录两种:
1.vue-router
{path:'/', redirect:'../xxxx/xxxx'}
2.Umijs
import Redirect from 'umi/redirect';
<Redirect to="/login" />