Vue2环境 微信小程序中下拉框搜索功能无法使用
mp.runtime.esm.js?3240:613 [Vue warn]: Error in render: "TypeError: Cannot read property 'includes' of undefined"
found in
---> <UniStatSelect> at pages/publish/zxz-uni-data-select.vue
<UniFormsItem> at uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue
<UniForms> at uni_modules/uni-forms/components/uni-forms/uni-forms.vue
<UniSection> at components/uni-section/uni-section.vue
pages/publish/index.vue(env: Windows,mp,1.06.2405020; lib: 3.7.1)
该问题可能是由于调用该方法时filterMixinDatacomResData变量未undefined正确初始化或初始化不正确而导致的。具体而言,在计算属性中,该方法应用于,如果未正确填充,则可能未定义。includesfilterMixinDatacomResDataincludese[this.dataKey]mixinDatacomResData
0 个回复