<select v-model="value" @change="configData(index)" placeholder="请选择轨道">
<option
v-for="(item,index) in headData"
:key="item.value"
:value="item.value">
</option>
</select>
因为直接在option加click事件是不触发的,所以改为change事件,但是我想拿到option的index,然后给configData传参数,有没有办法
你的index不是和value一样的吗? 直接拿value就可以了