<li v-for="(item, index) in list">
<span
v-for="c in col.children"
@click="edition(item.id,index)"
>{{c.title}}</span>
</template>
edition(id, index) {
console.log(index); //打印显示undefined
this.$router.push({ name: "editGoods", query: { id, index } });
}
console.log(index); //打印显示undefined ,请问下是传参方式不对吗?
@click="edition({item.id,index})"会报错