Vue.js 如何查找vue2谷歌地图自动完成结果的索引?

Vue.js 如何查找vue2谷歌地图自动完成结果的索引?,vue.js,Vue.js,我正在使用 若我在单个数据上使用自动完成函数,我可以从我创建的方法中获得它,并将此方法添加到@place\u changed listener。但我也有自定义的clearence数据,这是我与数组一起使用的。如何获取每个自定义数据的发出数据。如何将自定义数据的索引传递给place_changed方法。这是我的自定义数据结构 <div v-for="(custom, index) in customs"> <div class="form-group" style="disp

我正在使用

若我在单个数据上使用自动完成函数,我可以从我创建的方法中获得它,并将此方法添加到@place\u changed listener。但我也有自定义的clearence数据,这是我与数组一起使用的。如何获取每个自定义数据的发出数据。如何将自定义数据的索引传递给place_changed方法。这是我的自定义数据结构

<div v-for="(custom, index) in customs">
  <div class="form-group" style="display: flex;">
    <div style="width: 50%;text-align: center;alignment: center">
      <label>Clearance address</label>
      <gmap-autocomplete
              @place_changed="setCustomPlace"
              @input="handleInput"
      />
      <input v-model="custom.address" type="text" name="customs[][address]" class="form-control" style="width: 80%;">
      <label>Clearance contact name</label>
      <input v-model="custom.name" type="text" name="customs[][address]" class="form-control" style="width: 80%;">
    </div>
  </div>
</div>

通关地址
清除联系人姓名