别名 /a的别名是/b,意味着,当用户访问/b时,URL会保持为/b,但是路由匹配则为/a,就像用户访问/a一样 使用alias设置别名 { path: '/teacher', name: 'teacher-a', //给路由命名方便跳转 component: teacher, alias: '/student' }, 此时访问teacher和student都是在访问teacher 重定向 “重定向”的意思是&#x