diff --git a/src/views/flow/components/ParamsDrawer.vue b/src/views/flow/components/ParamsDrawer.vue index 7b0f84f..5ce1958 100644 --- a/src/views/flow/components/ParamsDrawer.vue +++ b/src/views/flow/components/ParamsDrawer.vue @@ -35,7 +35,7 @@ import CodeNodeParams from './params/CodeNodeParams.vue' import HttpNodeParams from './params/HttpNodeParams.vue' import SdAgentNodeParams from './params/SdAgentNodeParams.vue' import RecognizeNodeParams from './params/RecognizeNodeParams.vue' -import DeviceUniversal from './params/device_universal.vue' +import DeviceUniversal from './params/DeviceUniversal.vue' import SwitchNodeParams from './params/SwitchNodeParams.vue' const props = defineProps({ @@ -62,7 +62,7 @@ const currentComponent = computed(() => { if (type === 'http') return HttpNodeParams if (type === 'sdAgent') return SdAgentNodeParams if (type === 'recognize') return RecognizeNodeParams - if (type === 'device_universal') return DeviceUniversal + if (type === 'deviceUniversal') return DeviceUniversal if (type === 'branch') return SwitchNodeParams return null }) diff --git a/src/views/flow/components/params/Device_universal.vue b/src/views/flow/components/params/DeviceUniversal.vue similarity index 100% rename from src/views/flow/components/params/Device_universal.vue rename to src/views/flow/components/params/DeviceUniversal.vue diff --git a/src/views/flow/config.js b/src/views/flow/config.js index 0d7e9bc..766b666 100644 --- a/src/views/flow/config.js +++ b/src/views/flow/config.js @@ -337,7 +337,7 @@ function handler(params) { { icon: cameraSvg, name: "通用指令", - type: "device_universal", + type: "deviceUniversal", desc: "执行设备通用指令", action: 'DEVICE_EXECUTE_JSON_COMMAND', nodeType: 'EDGE', diff --git a/src/views/flow/nodes/function/device_universal.vue b/src/views/flow/nodes/function/deviceUniversal.vue similarity index 100% rename from src/views/flow/nodes/function/device_universal.vue rename to src/views/flow/nodes/function/deviceUniversal.vue diff --git a/src/views/flow/vue-flow/FlowNode.vue b/src/views/flow/vue-flow/FlowNode.vue index 3006758..cf97386 100644 --- a/src/views/flow/vue-flow/FlowNode.vue +++ b/src/views/flow/vue-flow/FlowNode.vue @@ -78,7 +78,7 @@ import CodeNode from "../nodes/function/codeNode.vue"; import CurrentLoopNode from "../nodes/function/currentLoop.vue"; import SdAgentNode from "../nodes/function/sdAgent.vue"; import RecognizeNode from "../nodes/function/recognize.vue"; -import DeviceUniversal from "../nodes/function/device_universal.vue"; +import DeviceUniversal from "../nodes/function/deviceUniversal.vue"; const props = defineProps({ id: String, @@ -103,7 +103,7 @@ const componentMap = { currentLoop: CurrentLoopNode, sdAgent: SdAgentNode, recognize: RecognizeNode, - device_universal: DeviceUniversal, + deviceUniversal: DeviceUniversal, }; const flowStore = useFlowStore();