diff --git a/docs/guide/data.md b/docs/guide/data.md index 966e5fd9..588ba543 100644 --- a/docs/guide/data.md +++ b/docs/guide/data.md @@ -131,7 +131,7 @@ export default { methods: { fetchItem () { // return the Promise from the action - return store.dispatch('fetchItem', this.$route.params.id) + return this.$store.dispatch('fetchItem', this.$route.params.id) } } }