From 8ca84bbbad7c2bdaf942cbe3f71ac38f9751221f Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Fri, 5 Dec 2025 13:33:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=8A=82=E7=82=B9=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/flow/config.js | 12 +++++++++++- src/views/flow/nodes/common/serviceNode.vue | 2 +- vite.config.js | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/views/flow/config.js b/src/views/flow/config.js index d75dd78..58c9a64 100644 --- a/src/views/flow/config.js +++ b/src/views/flow/config.js @@ -111,7 +111,16 @@ const expressOptions = () => { label: '惊讶' }, { value: 3, - label: '疲惫' + label: '愤怒' + }, { + value: 4, + label: '悲伤' + }, { + value: 5, + label: '睡觉' + }, { + value: 6, + label: '打哈欠' }] } @@ -395,6 +404,7 @@ export const collapseList = [ nodeParams: [ { name: 'audioPath', type: "input", input: "", disabled: true }, { name: 'deviceId', type: "input", input: "", disabled: true }, + { name: 'bioId', type: "input", input: "", disabled: true, required: false } ], } ], diff --git a/src/views/flow/nodes/common/serviceNode.vue b/src/views/flow/nodes/common/serviceNode.vue index 3fa852d..4c82f32 100644 --- a/src/views/flow/nodes/common/serviceNode.vue +++ b/src/views/flow/nodes/common/serviceNode.vue @@ -98,7 +98,7 @@ v-if="property.type === 'input'" :rules="[ { - required: true, + required: property?.required ?? true, message: '请输入参数值', trigger: 'blur', }, diff --git a/vite.config.js b/vite.config.js index 3e3b7a3..20460d5 100644 --- a/vite.config.js +++ b/vite.config.js @@ -36,7 +36,7 @@ export default defineConfig(({mode, command}) => { //赵 http://10.148.108.58:13080 // dev http://10.148.20.34:13080 // target: VITE_API_URL, - target: command === 'build' ? VITE_API_URL : 'http://192.168.0.100:13080', + target: command === 'build' ? VITE_API_URL : 'http://192.168.0.10:13080', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, '') }