vuejs $router 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 } })},