質問編集履歴

1

コードのミスを訂正

2020/01/01 09:45

投稿

Khy
Khy

スコア118

test CHANGED
File without changes
test CHANGED
@@ -18,7 +18,7 @@
18
18
 
19
19
  updated_at: 2020/01/01,
20
20
 
21
- data: [
21
+ reviews: [
22
22
 
23
23
  { review_id: 1, comment: "レビュー1" },
24
24
 
@@ -58,7 +58,7 @@
58
58
 
59
59
  app.$axios.$get('/api/v1/products/' + el.id + '/reviews').then((res) => {
60
60
 
61
- el.products = res.data
61
+ el.reviews = res.data
62
62
 
63
63
  })
64
64