質問するログイン新規登録

回答編集履歴

1

補足

2018/11/14 03:31

投稿

karamarimo
karamarimo

スコア2555

answer CHANGED
@@ -8,4 +8,6 @@
8
8
  }
9
9
  },
10
10
  ```
11
- にて`this.$store.state.posts.postsCategories`は`null`になっているのではないかと思われます。
11
+ にて`this.$store.state.posts.postsCategories`は`null`になっているのではないかと思われます。
12
+
13
+ ではどうやって postsCategories が取得できたタイミングで `this.options` をセットするかという話になりますが、せっかく Vue を使っているので `computed` を使って postsCategories から options を計算するようにすれば簡単に実現できます。