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',