From 45d8686d2f8ab872465234f18f69831b6cafcdab Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9Cyangqiao=E2=80=9D?= <“3083813177@qq.com”>
Date: Sun, 16 Feb 2025 21:27:02 +0800
Subject: [PATCH] pagedit
---
frontend/.env | 6 ++-
frontend/.env.development | 4 +-
frontend/.env.prod | 4 +-
frontend/src/App.vue | 2 +
frontend/src/api/user.ts | 13 ++++++
frontend/src/components/CameraView/index.less | 9 ++++
frontend/src/components/CameraView/index.vue | 43 +++++++++++++++++++
.../src/components/ReasoningView/index.vue | 5 ++-
frontend/src/components/StepsView.vue | 6 ++-
frontend/src/components/TextareaView.vue | 14 +++---
.../src/components/collapseView/index.less | 3 +-
.../src/components/collapseView/index.vue | 4 +-
frontend/src/utils/websocket.ts | 4 +-
frontend/src/view/home/index.vue | 10 +++--
frontend/src/view/reasoning/index.less | 2 +-
frontend/src/view/reasoning/index.vue | 43 ++++++++++---------
frontend/vite.config.ts | 2 +-
17 files changed, 127 insertions(+), 47 deletions(-)
create mode 100644 frontend/src/components/CameraView/index.less
create mode 100644 frontend/src/components/CameraView/index.vue
diff --git a/frontend/.env b/frontend/.env
index 6719e82..2727fcc 100755
--- a/frontend/.env
+++ b/frontend/.env
@@ -1,6 +1,8 @@
# 打包路径
VITE_BASE_URL = /
VITE_IS_REQUEST_PROXY = true
-VITE_API_URL = http://47.121.220.134
+VITE_API_URL = http://159.75.70.95
VITE_API_URL_PREFIX = /matagent
-VITE_WB_BASE_URL = ws://47.121.220.134:8000/matagent/chat
\ No newline at end of file
+VITE_WB_BASE_URL = ws://8.210.37.238:8000/ws/chat
+VITE_WB_CAMERA_ONE_URL = ws://159.75.70.95:8000/video_stream/camera1
+VITE_WB_CAMERA_TWO_URL = ws://159.75.70.95:8000/video_stream/camera2
\ No newline at end of file
diff --git a/frontend/.env.development b/frontend/.env.development
index b047a66..faa2c0f 100755
--- a/frontend/.env.development
+++ b/frontend/.env.development
@@ -3,4 +3,6 @@ VITE_BASE_URL = /
VITE_IS_REQUEST_PROXY = true
VITE_API_URL = http://159.75.91.126
VITE_API_URL_PREFIX = /matagent
-VITE_WB_BASE_URL = ws://47.121.220.134:8000/matagent/chat
\ No newline at end of file
+VITE_WB_BASE_URL = ws://8.210.37.238:8000/ws/chat
+VITE_WB_CAMERA_ONE_URL = ws://159.75.70.95:8000/video_stream/camera1
+VITE_WB_CAMERA_TWO_URL = ws://159.75.70.95:8000/video_stream/camera2
diff --git a/frontend/.env.prod b/frontend/.env.prod
index b047a66..d231c60 100755
--- a/frontend/.env.prod
+++ b/frontend/.env.prod
@@ -3,4 +3,6 @@ VITE_BASE_URL = /
VITE_IS_REQUEST_PROXY = true
VITE_API_URL = http://159.75.91.126
VITE_API_URL_PREFIX = /matagent
-VITE_WB_BASE_URL = ws://47.121.220.134:8000/matagent/chat
\ No newline at end of file
+VITE_WB_BASE_URL = ws://47.121.220.134:8000/matagent/chat
+VITE_WB_CAMERA_ONE_URL = ws://159.75.70.95:8000/video_stream/camera1
+VITE_WB_CAMERA_TWO_URL = ws://159.75.70.95:8000/video_stream/camera2
\ No newline at end of file
diff --git a/frontend/src/App.vue b/frontend/src/App.vue
index 1d79ff4..62bc35e 100755
--- a/frontend/src/App.vue
+++ b/frontend/src/App.vue
@@ -1,11 +1,13 @@
- {{generateTitle('角色')}}({{ item.group_name }})
- {{generateTitle('模型名称')}}({{ `${item.group_name}: ${item.agent_name}` }})
+ {{generateTitle('角色')}}({{ item.source }})
+ {{generateTitle('模型名称')}}({{ `${item.source}` }})
+
-
Jayson