uni.setNavigationBarTitle({
title: "123123",
success:function(){
console.log(1111111)
}
});
<picker style="width:100%;height: 100%;" mode="selector" @change="bindUserChange" :value="index" :range="userList" :range-key="'label'">
<view class="flexPicker">
<view class="f32">{{userList[indexUser].label}}</view>
<i class="iconfont el-icon-ali-Icon-sousuo"></i>
</view>
</picker>
2 个回复
DCloud_uni-ad_HDX
HBuilderX 2.7.11+ 已修复 uni.setNavigationBarTitle 在 Android 下无效问题
Java微尘 (作者)
报错
[Vue warn]: Error in render: "TypeError: undefined is not an object (evaluating '_vm.userList[_vm.indexUser].label')"
14:13:01.909 [Vue warn]: Property or method "index" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.
14:13:01.950 (found at pages/w_taskAdd/w_taskAdd.vue:1)