| @@ -20,7 +20,7 @@ export default { | |||||
| // localhost:8000/api/** -> https://preview.pro.ant.design/api/** | // localhost:8000/api/** -> https://preview.pro.ant.design/api/** | ||||
| '/api/': { | '/api/': { | ||||
| // 要代理的地址 | // 要代理的地址 | ||||
| target: 'http://172.20.32.181:31213', // 开发环境 | |||||
| target: 'http://172.20.32.185:31213', // 开发环境 | |||||
| // target: 'http://172.20.32.98:8082', | // target: 'http://172.20.32.98:8082', | ||||
| // target: 'http://172.20.32.150:8082', | // target: 'http://172.20.32.150:8082', | ||||
| // 配置了这个可以从 http 代理到 https | // 配置了这个可以从 http 代理到 https | ||||
| @@ -29,7 +29,7 @@ export default { | |||||
| // pathRewrite: { '^/api': '' }, | // pathRewrite: { '^/api': '' }, | ||||
| }, | }, | ||||
| '/profile/avatar/': { | '/profile/avatar/': { | ||||
| target: 'http://172.20.32.181:31213', | |||||
| target: 'http://172.20.32.185:31213', | |||||
| changeOrigin: true, | changeOrigin: true, | ||||
| }, | }, | ||||
| }, | }, | ||||
| @@ -19,7 +19,7 @@ const getRequestAPI = (type: IframePageType): (() => Promise<any>) => { | |||||
| case IframePageType.DatasetAnnotation: | case IframePageType.DatasetAnnotation: | ||||
| return getLabelStudioUrl; | return getLabelStudioUrl; | ||||
| case IframePageType.AppDevelopment: | case IframePageType.AppDevelopment: | ||||
| return () => Promise.resolve({ code: 200, data: 'http://172.20.32.181:30080/' }); | |||||
| return () => Promise.resolve({ code: 200, data: 'http://172.20.32.185:30080/' }); | |||||
| case IframePageType.DevEnv: | case IframePageType.DevEnv: | ||||
| return () => | return () => | ||||
| Promise.resolve({ | Promise.resolve({ | ||||
| @@ -9,7 +9,7 @@ type RobotFrameProps = { | |||||
| }; | }; | ||||
| function RobotFrame({ onClose, visible }: RobotFrameProps) { | function RobotFrame({ onClose, visible }: RobotFrameProps) { | ||||
| const url = 'http://172.20.32.181:30080/chat/EruwZfxVgDkWdLYs'; | |||||
| const url = 'http://172.20.32.185:30080/chat/EruwZfxVgDkWdLYs'; | |||||
| const openUrl = () => { | const openUrl = () => { | ||||
| window.open(url, '_blank'); | window.open(url, '_blank'); | ||||
| }; | }; | ||||
| @@ -135,7 +135,7 @@ function LogGroup({ | |||||
| const setupSockect = () => { | const setupSockect = () => { | ||||
| let { host } = location; | let { host } = location; | ||||
| if (process.env.NODE_ENV === 'development') { | if (process.env.NODE_ENV === 'development') { | ||||
| host = '172.20.32.181:31213'; | |||||
| host = '172.20.32.185:31213'; | |||||
| } | } | ||||
| const socket = new WebSocket( | const socket = new WebSocket( | ||||
| `ws://${host}/newlog/realtimeLog?start=${start_time}&query={pod="${pod_name}"}`, | `ws://${host}/newlog/realtimeLog?start=${start_time}&query={pod="${pod_name}"}`, | ||||