fix(web): 修复访问地址改到了本地测试

This commit is contained in:
v-zhangjc9
2025-07-02 11:28:44 +08:00
parent 7209b52e3d
commit c46da52942
2 changed files with 10 additions and 8 deletions

View File

@@ -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 (
<div className="mt-2">
@@ -32,6 +33,7 @@ const SwitchNode = (props: NodeProps) => AmisNode({
</div>
)
},
// @ts-ignore
handlers: nodeData => {
return (
<>
@@ -47,7 +49,7 @@ const SwitchNode = (props: NodeProps) => AmisNode({
))}
</>
)
}
},
})
export default React.memo(SwitchNode)

View File

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