l***@126.com
l***@126.com
  • 发布:2022-12-30 10:42
  • 更新:2023-03-11 15:18
  • 阅读:275

uni-data-select 更新location时会报错

分类:uni-app
<uni-col :span="12">  
                        <uni-forms-item label="产品" name="production">  
                            <uni-data-select v-if="show" :localdata="productionOptions"  
                                v-model="form.production" :clear="false" @change="productionChange" />  
                        </uni-forms-item>  
                    </uni-col>  

onLoad() {  
            getDicts("b_production").then(response => {  
                // this.productionOptions = response.data;  
                let list = [];  
                list = response.data;  
                console.dirxml(list);  
                if (list.length > 0) {  
                    this.productionOptions = toUnidDataSelectFormat(list);  
                    console.dirxml(this.productionOptions);  
                }  
            });  
        },

报错提示:
应用未关联服务空间,请在uniCloud目录右键关联服务空间
chunk-vendors.js:2032 [Vue warn]: Error in callback for watcher "function () {var e = [];return ["pageCurrent", "pageSize", "localdata", "collection", "action", "field", "orderby", "where", "getont", "getcount", "gettree", "groupby", "groupField", "distinct"].forEach(function (t) {e.push(_this18[t]);}), e;}": "TypeError: n.collection is not a function"

found in

---> <UniStatSelect> at uni_modules/uni-data-select/components/uni-data-select/uni-data-select.vue
<UniFormsItem> at uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue
<UniCol> at uni_modules/uni-row/components/uni-col/uni-col.vue
<UniRow> at uni_modules/uni-row/components/uni-row/uni-row.vue
<UniForms> at uni_modules/uni-forms/components/uni-forms/uni-forms.vue
at pages/work/receivingMethod/orderReceiving.vue

2022-12-30 10:42 负责人:DCloud_UNI_HT 分享
已邀请:
YUANRJ

YUANRJ

测试未复现,请检查是否配置了云函数相关的参数

  • l***@126.com (作者)

    哪里可以配置云函数参数?我这代码上有吗?

    2023-01-16 09:04

l***@126.com

l***@126.com (作者)

更新新的版本就解决了,感觉他们的复现有点问题

要回复问题请先登录注册