diff --git a/src/views/flow/nodes/common/serviceNode.vue b/src/views/flow/nodes/common/serviceNode.vue index d9eb133..eba9341 100644 --- a/src/views/flow/nodes/common/serviceNode.vue +++ b/src/views/flow/nodes/common/serviceNode.vue @@ -5,29 +5,32 @@ { const nodeOperatingStatus = ref("NORMAL"); const inputJsonData = ref({}); const outputJsonData = ref({}); +const errorInfoData = ref(''); const visibleChange = (value, index, quote) => { if (value) { @@ -425,6 +429,7 @@ onMounted(() => { nodeOperatingStatus.value = data.status; let inputData = {}; let output = {}; + errorInfoData.value = data?.message || '' try { inputData = JSON.parse(data.paramsIn) || {}; output = JSON.parse(data.paramsOut) || {}; diff --git a/src/views/flow/nodes/function/codeNode.vue b/src/views/flow/nodes/function/codeNode.vue index 69fbfb0..01a154a 100644 --- a/src/views/flow/nodes/function/codeNode.vue +++ b/src/views/flow/nodes/function/codeNode.vue @@ -5,29 +5,32 @@ { const nodeOperatingStatus = ref("NORMAL"); const inputJsonData = ref({}); const outputJsonData = ref({}); +const errorInfoData = ref(''); const visibleChange = (value, index, quote) => { if (value) { @@ -532,6 +536,7 @@ onMounted(() => { nodeOperatingStatus.value = data.status; let inputData = {}; let output = {}; + errorInfoData.value = data?.message || '' try { inputData = JSON.parse(data.paramsIn) || {}; output = JSON.parse(data.paramsOut) || {}; diff --git a/src/views/flow/nodes/function/httpNode.vue b/src/views/flow/nodes/function/httpNode.vue index 1135f92..9235cd6 100644 --- a/src/views/flow/nodes/function/httpNode.vue +++ b/src/views/flow/nodes/function/httpNode.vue @@ -5,29 +5,32 @@ { const nodeOperatingStatus = ref("NORMAL"); const inputJsonData = ref({}); const outputJsonData = ref({}); +const errorInfoData = ref(''); const visibleChange = (value, index, quote) => { if (value) { @@ -424,6 +428,7 @@ onMounted(() => { nodeOperatingStatus.value = data.status; let inputData = {}; let output = {}; + errorInfoData.value = data?.message || '' try { inputData = JSON.parse(data.paramsIn) || {}; output = JSON.parse(data.paramsOut) || {}; diff --git a/src/views/flow/nodes/function/switch.vue b/src/views/flow/nodes/function/switch.vue index a56f086..66133a6 100644 --- a/src/views/flow/nodes/function/switch.vue +++ b/src/views/flow/nodes/function/switch.vue @@ -5,7 +5,10 @@ { const nodeOperatingStatus = ref("NORMAL"); const inputJsonData = ref({}); const outputJsonData = ref({}); +const errorInfoData = ref(''); watch( () => props.properties, @@ -412,6 +416,7 @@ onMounted(() => { nodeOperatingStatus.value = data.status; let inputData = {}; let output = {}; + errorInfoData.value = data?.message || '' try { inputData = JSON.parse(data.paramsIn) || {}; output = JSON.parse(data.paramsOut) || {};