v-if="1"
v-slot:default="{data, loading, error, options}"
collection="commentsGood,uni-id-users"
:where="`post_id == '${id}' && comment_type == 0`"
:field="cd"ommentsFile
:page-size="10"
ref="commentsGood"
orderby="comment_date desc"
@load="loadComments"
>
<view v-if="error">{{error.message}}</view>
<view v-else>
--{{data.length}}
<view
class="text-muted d-flex j-center"
style="margin-top: 180rpx;"
v-if="!data.length"
>
暂无留言,点击写留言
</view>
<view v-else v-for="item in data" :key="item._id">
{{item.comment_content}}
</view>
</view>
</unicloud-db>
const commentsFiled =
`arrayElemAt(user_id.nickname, 0) as nickname,
comment_content,
comment_date`
- 发布:2022-08-31 11:10
- 更新:2022-09-05 10:21
- 阅读:278
产品分类: uniCloud/App
示例代码:
操作步骤:
请官方多测试一下小程序端 udb组件bug多多啊
请官方多测试一下小程序端 udb组件bug多多啊
预期结果:
微信小程序开发少bug,不要和H5端表现不一样啊 H5端正则,小程序死亡。。。
微信小程序开发少bug,不要和H5端表现不一样啊 H5端正则,小程序死亡。。。
实际结果:
小程序udb组件数据bugbugbug
小程序udb组件数据bugbugbug
bug描述:
请官方尽快核对一下,unicloud发展两年多了,还这么多bug,请问如何实现商用,谁敢、谁能用来商用
使用udb组件,给出一个where条件过滤数据后(:where="post_id == '${id}' && comment_type == 0
"),微信小程序端和H5端请求到数据结果不一样--H5端是正常的,@load事件能看到成功获取到了数据,但微信小程序@load这里看到拿到的数据为 [ ]。 就是说给了一个where条件后,小程序没有返回数据了。 关键的是我同样代码只是运行在H5和小程序两个端,接口直接返回不一样的了!!!太诡异了! 拜托官方把微信小程序兼容好啊!
IDE: HX-alpha 3.5.4
微信开发者工具:1.06.2206090
vue2