Created
January 27, 2018 02:48
-
-
Save hibuno/82af0a13e1bbc5a0f438654e3ae86409 to your computer and use it in GitHub Desktop.
Add function open detail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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