1 // 第一种 2 { 3 path:'/', 4 component: require('../components/Login.vue') 5 }, 6 7 8 // 第二种 9 { path: '/', redirect: '/wordcloud' }, 10 { path: '/wordcloud', component: Worldcloud },
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