通过后端数据定义picker,但picker不更新
- 需求的场景描述(希望解决的问题)
<view class=“mod section”>
<text class=“key”>选择监控器\n</text>
<picker bindchange=“bindPickerChange” value="{{objectIndex}}" range="{{objectArray}}"
data-selecthx="{{objectArray[objectIndex].name}}" range-key=“name”>
<view class=“value”> 当前选择:{{objectArray[objectIndex].name}} <image class=“arrow-r” src="…/…/image/arrow-r-0.png"></image></view>
</picker>
</view>
objectArray:[],从后端获取数据后push进去后,picker不更新,依然为空,这种该怎么解决