[Vuejs]-Vue router changing the url but not the content

0๐Ÿ‘

  1. Import your song.vue in index.js
import Songs from '../views/Songs.vue'
  1. Check your ../views/Songs.vue

yourlocalhost.url/mainapp/songs/1

Where โ€˜1โ€™ is a parameter named โ€˜idโ€™ (url like /song/:id), try with:

this.$route.params.id

Leave a comment