回答編集履歴
1
補足
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 を計算するようにすれば簡単に実現できます。
|