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 {Handle, type NodeProps, Position} from '@xyflow/react'
import AmisNode from './AmisNode.tsx'
import {Tag} from 'antd' import {Tag} from 'antd'
import React from 'react' import React from 'react'
import AmisNode from './AmisNode.tsx'
const cases = [ const cases = [
{ {
index: 1 index: 1,
}, },
{ {
index: 2 index: 2,
}, },
{ {
index: 3 index: 3,
} },
] ]
const SwitchNode = (props: NodeProps) => AmisNode({ const SwitchNode = (props: NodeProps) => AmisNode({
@@ -21,6 +21,7 @@ const SwitchNode = (props: NodeProps) => AmisNode({
defaultNodeName: '分支节点', defaultNodeName: '分支节点',
defaultNodeDescription: '根据不同的情况前往不同的分支', defaultNodeDescription: '根据不同的情况前往不同的分支',
columnSchema: [], columnSchema: [],
// @ts-ignore
extraNodeDescription: nodeData => { extraNodeDescription: nodeData => {
return ( return (
<div className="mt-2"> <div className="mt-2">
@@ -32,6 +33,7 @@ const SwitchNode = (props: NodeProps) => AmisNode({
</div> </div>
) )
}, },
// @ts-ignore
handlers: nodeData => { handlers: nodeData => {
return ( return (
<> <>
@@ -47,7 +49,7 @@ const SwitchNode = (props: NodeProps) => AmisNode({
))} ))}
</> </>
) )
} },
}) })
export default React.memo(SwitchNode) export default React.memo(SwitchNode)

View File

@@ -10,8 +10,8 @@ import {isEqual} from 'licia'
export const commonInfo = { export const commonInfo = {
debug: isEqual(import.meta.env.MODE, 'development'), debug: isEqual(import.meta.env.MODE, 'development'),
baseUrl: 'http://132.126.207.130:35690/hudi_services/service_web', 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://132.126.207.130:35690/hudi_services/service_ai_web',
baseAiUrl: 'http://localhost:8080', // baseAiUrl: 'http://localhost:8080',
authorizationHeaders: { authorizationHeaders: {
'Authorization': 'Basic QXhoRWJzY3dzSkRiWU1IMjpjWXhnM2I0UHRXb1ZENVNqRmF5V3h0blNWc2p6UnNnNA==', 'Authorization': 'Basic QXhoRWJzY3dzSkRiWU1IMjpjWXhnM2I0UHRXb1ZENVNqRmF5V3h0blNWc2p6UnNnNA==',
'Content-Type': 'application/json', 'Content-Type': 'application/json',