where已经打印出来的,但是loadData没有生效,不知道怎么写,请哪位大佬指教一下
async onLoad(e) {
console.log('onload');
// 筛选出昵称不为空的用户
this.where = "nickname != null"
// 如果是代理,只能看代理自己的用户
if(this.uniIDHasRole('agenc')){
let res = await db.collection('uni-id-users').field('university_id').where('_id==$cloudEnv_uid').get()
let university_id = res.result.data[0].university_id
this.where += " && university_id == '"+ university_id + "'"
}
console.log(this.where);
this.$nextTick(()=>{
console.log(123);
this.$refs.udb.loadData();
})
},
1***@qq.com (作者)
我加上了哦,是uni-admin的代码
2022-05-24 14:53