vue路由跳转到登录页

 1 // 第一种
 2 {
 3             path:'/',
 4             component: require('../components/Login.vue')
 5 },
 6 
 7 
 8 // 第二种
 9  { path: '/', redirect: '/wordcloud' },
10  { path: '/wordcloud', component: Worldcloud },
原文地址:https://www.cnblogs.com/xiaomili/p/6556286.html