回答編集履歴

1

関数名と変数名がかぶっていたので修正

2019/08/23 10:58

投稿

nt4c
nt4c

スコア768

test CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  <div v-for="(item, index) in select" :key="item">
16
16
 
17
- <button id="show-modal" @click="showModal(index)">Show Modal</button>
17
+ <button id="show-modal" @click="openModal(index)">Show Modal</button>
18
18
 
19
19
  <div>
20
20
 
@@ -108,7 +108,7 @@
108
108
 
109
109
  methods: {
110
110
 
111
- showModal(index) {
111
+ openModal(index) {
112
112
 
113
113
   this.showModal = true
114
114