<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:
- PaddlePaddle Error: ‘map’ object is not subscriptable
- AttributeError: ‘tuple’ object has no attribute ‘extend’
- How to Solve Error: Cannot read property ‘map’ of undefined
- [Solved] Element-ui Error: [Vue warn]: Invalid prop: type check failed for prop “index”. Expected String with value “1”, got Number with value 1
- [Solved] Vue error: (Avoid using non-primitive value as key, use stringnumber value instead.)
- [Solved] Vue route jump error: Uncaught TypeError: Cannot read property ‘push’ of undefined
- [Solved] TypeError: Cannot read property ‘getAttribute’ of undefined
- Chrome66 Auto Play Error: Uncaught (in promise) DOMException: play() failed because the user didn’t interact with the document first
- [Solved] Error: `resize` should not be called during main process.
- [Solved] Elasticsearch Error: “java.lang.IllegalArgumentException: Rejecting mapping update to [xxx] as the final mapping would have more than 1 type: [_doc, log]””