回答編集履歴
1
関数名と変数名がかぶっていたので修正
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="
|
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
|
-
|
111
|
+
openModal(index) {
|
112
112
|
|
113
113
|
this.showModal = true
|
114
114
|
|