<uni-section title="通讯录" type="line" title-font-size="32rpx">
<view v-if="contactList.length >0 && showId">
<uni-list :border="true" v-for="(item,index) in contactList " :key="index">
<uni-list-item :avatar-circle="true" :title=item.nickname :note=item.intro
:thumb=item.avatar_file.url + item.avatar_file.extname thumb-size="lg" clickable
@click="toInfo(item._id)"></uni-list-item>
</uni-list>
</view>
<view v-if="contactList.length == 0 && showId">
<uni-list>
<uni-list-item :disabled="true" title="暂无用户"></uni-list-item>
</uni-list>
</view>
</uni-section>

- 发布:2023-08-14 10:55
- 更新:2025-01-02 11:15
- 阅读:219
【报Bug】TypeError: Cannot read property 'remove' of undefined at uni-app-view.umd.js:1
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: mac mojave
HBuilderX类型: Alpha
HBuilderX版本号: 3.7.13
手机系统: Android
手机系统版本号: Android 11
手机厂商: 华为
手机机型: P20
页面类型: vue
vue版本: vue3
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
页面 Onshow时,给contactList一个数据进行渲染
页面 Onshow时,给contactList一个数据进行渲染
预期结果:
渲染出列表
渲染出列表
实际结果:
报错
报错
bug描述:
该代码在小程序的运行上没有问题,但是在运行到 android APP基座上就报错了
