diff --git a/cmdb-ui/src/modules/cmdb/components/webhook/index.vue b/cmdb-ui/src/modules/cmdb/components/webhook/index.vue index 52b460e5..3f51e96c 100644 --- a/cmdb-ui/src/modules/cmdb/components/webhook/index.vue +++ b/cmdb-ui/src/modules/cmdb/components/webhook/index.vue @@ -88,7 +88,9 @@ export default { } catch {} const headers = {} this.$refs.Header.headers.forEach((item) => { - headers[item.key] = item.value + if (item.key) { + headers[item.key] = item.value + } }) let authorization = {} const type = this.$refs.Authorization.authorizationType