首页 > TAG信息列表 > router4

【vue-router学习】从零开始学习vue-router4.x(五)

路由重定向 在创建路由时可以用redirect参数指定默认访问路径 写法1 const routes = [{ path: "/", component: () => import("../components/root.vue"), redirect: to => { return "user1" }, children: [{ path: "user1", compon