From d59320056900068b011897310f7112296e6afd24 Mon Sep 17 00:00:00 2001 From: Mizumaki Date: Fri, 11 Jan 2019 08:00:15 +0900 Subject: [PATCH] fix computed key from 'items' to 'item' --- docs-gitbook/ja/data.md | 2 +- docs/ja/guide/data.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs-gitbook/ja/data.md b/docs-gitbook/ja/data.md index e3024cea..9e731f97 100644 --- a/docs-gitbook/ja/data.md +++ b/docs-gitbook/ja/data.md @@ -87,7 +87,7 @@ export default { }, computed: { // ストアの状態から item を表示します - items () { + item () { return this.$store.state.items[this.$route.params.id] } } diff --git a/docs/ja/guide/data.md b/docs/ja/guide/data.md index 304abb21..20dc8373 100644 --- a/docs/ja/guide/data.md +++ b/docs/ja/guide/data.md @@ -96,7 +96,7 @@ export default { computed: { // ストアの状態から item を表示します - items () { + item () { return this.$store.state.items[this.$route.params.id] } }