diff --git a/src/pages/index/code/code_module/index.vue b/src/pages/index/code/code_module/index.vue index 6d82221..32f0681 100644 --- a/src/pages/index/code/code_module/index.vue +++ b/src/pages/index/code/code_module/index.vue @@ -150,7 +150,7 @@ const headers = { // 查询参数 const params = reactive({ customer_guid: "", - code_module_category_guid: props.code_module_category.code_module_category_guid ? props.code_module_category.code_module_category_guid : "", + code_module_category_guid: "", code_module_name: "", code_module_audit: "", @@ -160,7 +160,9 @@ const props = defineProps({ code_module_category: Object, }); watch(props, (v) => { - params.code_module_category_guid = props.code_module_category.code_module_category_guid + if (props.code_module_category) { + params.code_module_category_guid = props.code_module_category.code_module_category_guid + } }); if (props.code_module_category) { params.code_module_category_guid = props.code_module_category.code_module_category_guid