質問編集履歴

1

PG修正

2019/01/15 14:29

投稿

tatsuya_guchi
tatsuya_guchi

スコア10

test CHANGED
File without changes
test CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
  <div v-for="item in items">
32
32
 
33
- <select v-model="item.web" name="web[]">
33
+ <select v-model="item.webs_id" name="web[]">
34
34
 
35
35
  <option v-for="web in webs" v-bind:value="web.id">
36
36
 
@@ -66,9 +66,9 @@
66
66
 
67
67
  items: [
68
68
 
69
- { title: 'memo1', web: 1 },
69
+ { title: 'memo1', webs_id: 1 },
70
70
 
71
- { title: 'memo2', web: 2 }
71
+ { title: 'memo2', webs_id: 2 }
72
72
 
73
73
  ],
74
74
 
@@ -88,11 +88,7 @@
88
88
 
89
89
  add: function (event) {
90
90
 
91
-
92
-
93
- this.items.push({ id: 0 })
91
+ this.items.push({ title: null, webs_id: 1 })
94
-
95
-
96
92
 
97
93
  }
98
94