Ref Use v-for to create and call subcomponents error [Solved]

<son v-for="(item, index) in data" :key="index" :ref="item.ref" />
// subcomponent plus key value, call plus corresponding subscript, if not yet possible add setTimeout.
this.$refs.refSon[index].init() //refSon ref name index corresponding to the subscript

Similar Posts: