Vue route jump uses path to cause stack overflow, but it is not a problem to use name

routing configuration:

{
      path: "/alarmHistory",
      name: "AlarmHistory",
      component: AlarmHistory,
      alias: "/alarmHistory"
    },

event:

this.$router.push({name: "AlarmHistory"});

previous projects used path to jump, but today I found that using path jump will report an error stack overflow. But there is no problem when using name jump, please tell me what went wrong.

Menu