y***@yeah.net
y***@yeah.net
  • 发布:2022-04-08 13:58
  • 更新:2022-04-08 13:58
  • 阅读:836

unicloud-db在使用loadtime:manual的情况下,更改where让其立即生效的方法:使用this.$nextTick

分类:uniCloud

如下情况,unicloud-db只显示上次where的数据

this.where = “_id==1”;  
this.$refs.udb.refresh()

如下情况,unicloud-db显示where修改后的数据

this.where = “_id=1”;  
this.$nextTick(() => {  
    this.$refs.udb.refresh()  
})
3 关注 分享
efficient_work t***@dingtalk.com 喵小白

要回复文章请先登录注册