8***@qq.com
8***@qq.com
  • 发布:2023-12-31 01:10
  • 更新:2024-01-02 10:51
  • 阅读:89

请教用data-picker组件云端查询where时查询失败

分类:uniCloud

小程序端,组件代码如下是这样的,一个用计算属性,一个字符串,都不行,我看控制台的where参数是(hero_code==0&&step==2&&pos==1) && ()这样,为什么会有括号

<uni-data-picker  
          v-model="form.pos_0"  
          collection="cjd-weapon"  
          :where="whereFn"  
        >  
        </uni-data-picker  
        <uni-data-picker  
          v-model="form.pos_1"  
          collection="cjd-weapon"  
          :where="`hero_code==${form.hero_code}&&step=${MAX_STEP_NUM}&&pos==1`"  
        >  
        </uni-data-picker>  
const whereFn = computed(() => {  
  return `hero_code==${form.value.hero_code}&&step=${MAX_STEP_NUM}`;  
});
2023-12-31 01:10 负责人:无 分享
已邀请:
DCloud_uniAD_HDX

DCloud_uniAD_HDX

上面提供的是完整代码吗?是否有设置其他属性

要回复问题请先登录注册