vue router '$route' is not defined code example
Example: router not defined vue
editVideo(video) {router.push({ name: 'editVideo', params: { id: video.id } })},
editVideo(video) {router.push({ name: 'editVideo', params: { id: video.id } })},