路由配置:
{
path: '/alarmHistory',
name: 'AlarmHistory',
component: AlarmHistory,
alias: '/alarmHistory'
},
事件:
this.$router.push({name: 'AlarmHistory'});
以前的项目都是使用的path进行跳转,今天发现使用path跳转会报错 栈溢出。但是使用name跳转的时候又没问题,请教下这是哪里出了问题。。。