Skip to content

Instantly share code, notes, and snippets.

@hibuno
Created January 27, 2018 02:48
Show Gist options
  • Save hibuno/82af0a13e1bbc5a0f438654e3ae86409 to your computer and use it in GitHub Desktop.
Save hibuno/82af0a13e1bbc5a0f438654e3ae86409 to your computer and use it in GitHub Desktop.
Add function open detail
...
methods : {
...
},
openDetail (data) {
this.$store.commit('setArticle', data)
this.$router.replace({ 'path': '/detail' })
}
},
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment