const routes = [ { path:"/HelloWorld", component: HelloWorld }, { path: "/second", component: second }, //默认 { path: '/', redirect: HelloWorld }]一进来总是显示second路由,点击可以切换,设置默认HelloWorld为初始路由无效,怎么回事呢?(初学vue者)
添加回答
举报
0/150
提交
取消