2***@qq.com
2***@qq.com
  • 发布:2023-11-15 17:09
  • 更新:2024-12-04 15:36
  • 阅读:341

【报Bug】unicloud-city-select插件获取数据问题

分类:uniCloud

产品分类: uniCloud/App

示例代码:
<label class="label-with-icon" v-text="weatherstr" @click="open()"></label>  
                <unicloud-city-select ref="citySelect" :hot-city="hotCity" :location="true"  
                    @select="selectCity"></unicloud-city-select>  

const citySelect = ref(null); //城市选择组件  
    // 打开城市选择页面  
    function open() {  
        console.log(citySelect);  
        citySelect.value.open();  
    }  

操作步骤:

引入组件,右键插件database目录下的opendb-city-china.schema上传Schema,运行起来调用open()打开页面

预期结果:

应该有城市数据

实际结果:

无城市数据

bug描述:

unicloud-city-select插件的

uni-city-list.vue中getCloudData()函数中

let dbRes = await db.collection("opendb-city-china").aggregate()

报错Uncaught (in promise) Error: request:ok
at s4 ()
at async fn.uni.showLoading.title ()
at async AsyncFunction.success ()

2023-11-15 17:09 负责人:无 分享
已邀请:
3***@qq.com

3***@qq.com

我也是这样有问题只不过报错不一样
15:33:53.124 [本地调试][clientDB请求]表名:opendb-city-china
15:33:53.418 [本地调试]FaasError: invalid $group accumulator
15:33:53.419 [本地调试] at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

要回复问题请先登录注册