vue 跳转路由 name值要对应

      this.$router.push({
        path: "/roomType/edit",
        name: "roomTypeEdit",
        params: {
          id: row._id,
        },
      });


      {
        path: '/roomType/edit',
        name: 'roomTypeEdit',
        component: roomTypeEdit,
        meta: {
          requiredAth: true,
        }
      },

  

原文地址:https://www.cnblogs.com/zhanglanzuopin/p/15771765.html