Browse Source

测试环境前端修改

dev-lhz
chenzhihang 1 year ago
parent
commit
5f37bd0e66
4 changed files with 5 additions and 5 deletions
  1. +2
    -2
      react-ui/config/proxy.ts
  2. +1
    -1
      react-ui/src/components/IFramePage/index.tsx
  3. +1
    -1
      react-ui/src/components/RobotFrame/index.tsx
  4. +1
    -1
      react-ui/src/pages/Experiment/components/LogGroup/index.tsx

+ 2
- 2
react-ui/config/proxy.ts View File

@@ -20,7 +20,7 @@ export default {
// localhost:8000/api/** -> https://preview.pro.ant.design/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.150:8082',
// 配置了这个可以从 http 代理到 https
@@ -29,7 +29,7 @@ export default {
// pathRewrite: { '^/api': '' },
},
'/profile/avatar/': {
target: 'http://172.20.32.181:31213',
target: 'http://172.20.32.185:31213',
changeOrigin: true,
},
},


+ 1
- 1
react-ui/src/components/IFramePage/index.tsx View File

@@ -19,7 +19,7 @@ const getRequestAPI = (type: IframePageType): (() => Promise<any>) => {
case IframePageType.DatasetAnnotation:
return getLabelStudioUrl;
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:
return () =>
Promise.resolve({


+ 1
- 1
react-ui/src/components/RobotFrame/index.tsx View File

@@ -9,7 +9,7 @@ type 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 = () => {
window.open(url, '_blank');
};


+ 1
- 1
react-ui/src/pages/Experiment/components/LogGroup/index.tsx View File

@@ -135,7 +135,7 @@ function LogGroup({
const setupSockect = () => {
let { host } = location;
if (process.env.NODE_ENV === 'development') {
host = '172.20.32.181:31213';
host = '172.20.32.185:31213';
}
const socket = new WebSocket(
`ws://${host}/newlog/realtimeLog?start=${start_time}&query={pod="${pod_name}"}`,


Loading…
Cancel
Save