diff --git a/src/components/common/filter-form/index.vue b/src/components/common/filter-form/index.vue index 8e71dbca..073c4fc9 100644 --- a/src/components/common/filter-form/index.vue +++ b/src/components/common/filter-form/index.vue @@ -100,7 +100,7 @@ onBeforeMount(() => { // 获取到默认值 const old_defalut = new_dataInterface.value[item.form_name]; // 默认值不为空的时候,进行处理查看当前数据是否存在默认值数据 - if (old_defalut !== '' && old_defalut !== undefined && ['select', 'radio', 'checkout'].includes(item.type)) { + if (old_defalut !== '' && old_defalut != null && ['select', 'radio', 'checkout'].includes(item.type)) { if (item.type == 'select' && +item?.config?.is_level == 1) { // 如果是级联的效果 const result = contains_value(options_list, item, [], item?.config?.children || ''); new_dataInterface.value[item.form_name] = result; diff --git a/src/components/common/tabs-view/index.vue b/src/components/common/tabs-view/index.vue index 030fd902..e02da25d 100644 --- a/src/components/common/tabs-view/index.vue +++ b/src/components/common/tabs-view/index.vue @@ -4,10 +4,10 @@