From c46da52942c20a787c6179de8e3506860fdee8c7 Mon Sep 17 00:00:00 2001 From: v-zhangjc9 Date: Wed, 2 Jul 2025 11:28:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E4=BF=AE=E5=A4=8D=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E5=9C=B0=E5=9D=80=E6=94=B9=E5=88=B0=E4=BA=86=E6=9C=AC?= =?UTF-8?q?=E5=9C=B0=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../client/src/pages/ai/flow/node/SwitchNode.tsx | 14 ++++++++------ service-web/client/src/util/amis.tsx | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/service-web/client/src/pages/ai/flow/node/SwitchNode.tsx b/service-web/client/src/pages/ai/flow/node/SwitchNode.tsx index bd1c95f..8f19029 100644 --- a/service-web/client/src/pages/ai/flow/node/SwitchNode.tsx +++ b/service-web/client/src/pages/ai/flow/node/SwitchNode.tsx @@ -1,18 +1,18 @@ import {Handle, type NodeProps, Position} from '@xyflow/react' -import AmisNode from './AmisNode.tsx' import {Tag} from 'antd' import React from 'react' +import AmisNode from './AmisNode.tsx' const cases = [ { - index: 1 + index: 1, }, { - index: 2 + index: 2, }, { - index: 3 - } + index: 3, + }, ] const SwitchNode = (props: NodeProps) => AmisNode({ @@ -21,6 +21,7 @@ const SwitchNode = (props: NodeProps) => AmisNode({ defaultNodeName: '分支节点', defaultNodeDescription: '根据不同的情况前往不同的分支', columnSchema: [], + // @ts-ignore extraNodeDescription: nodeData => { return (
@@ -32,6 +33,7 @@ const SwitchNode = (props: NodeProps) => AmisNode({
) }, + // @ts-ignore handlers: nodeData => { return ( <> @@ -47,7 +49,7 @@ const SwitchNode = (props: NodeProps) => AmisNode({ ))} ) - } + }, }) export default React.memo(SwitchNode) \ No newline at end of file diff --git a/service-web/client/src/util/amis.tsx b/service-web/client/src/util/amis.tsx index d6c2c6f..b77b522 100644 --- a/service-web/client/src/util/amis.tsx +++ b/service-web/client/src/util/amis.tsx @@ -10,8 +10,8 @@ import {isEqual} from 'licia' export const commonInfo = { debug: isEqual(import.meta.env.MODE, 'development'), baseUrl: 'http://132.126.207.130:35690/hudi_services/service_web', - // baseAiUrl: 'http://132.126.207.130:35690/hudi_services/service_ai_web', - baseAiUrl: 'http://localhost:8080', + baseAiUrl: 'http://132.126.207.130:35690/hudi_services/service_ai_web', + // baseAiUrl: 'http://localhost:8080', authorizationHeaders: { 'Authorization': 'Basic QXhoRWJzY3dzSkRiWU1IMjpjWXhnM2I0UHRXb1ZENVNqRmF5V3h0blNWc2p6UnNnNA==', 'Content-Type': 'application/json',