<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
l***@126.com (作者)
哪里可以配置云函数参数?我这代码上有吗?
2023-01-16 09:04