uni——The solution to the failure of calling subcomponents ($nextTick)

Case Description

insert image description here
An error is reported when calling a method or property assignment in a subcomponent

this.$refs.goodsOrder.list = [ ]

resolve code

wrapped in outer layerthis.$nextTick(() => { 数据 })

this.$nextTick(() => {
    
    
	this.$refs.goodsOrder.list = []
})

Guess you like

Origin blog.csdn.net/xulihua_75/article/details/130578593