From c231a72acb9c3384b361e95a853bf639d73abc0d Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Sun, 10 Aug 2025 12:07:58 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=AF=B9=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- constant/base.js | 7 +- pages/chat/ChatCardAI.vue | 38 +- pages/chat/ChatInputArea.vue | 382 +++++----- pages/chat/ChatMainList.vue | 1067 ++++++++++++++++----------- pages/chat/styles/ChatMainList.scss | 19 + pages/goods/index.vue | 5 + utils/TypewriterManager.js | 172 +++++ utils/WebSocketManager.js | 621 ++++++++++++++++ utils/index.js | 429 +++++++++++ 9 files changed, 2104 insertions(+), 636 deletions(-) create mode 100644 utils/TypewriterManager.js create mode 100644 utils/WebSocketManager.js create mode 100644 utils/index.js diff --git a/constant/base.js b/constant/base.js index a6f618c..9fe9d17 100644 --- a/constant/base.js +++ b/constant/base.js @@ -1,3 +1,6 @@ -const isProd = true +const isProd = true; -export const BASE_URL = 'https://onefeel.brother7.cn/ingress' //'http://8.138.234.141/ingress' \ No newline at end of file +export const BASE_URL = "https://onefeel.brother7.cn/ingress"; //'http://8.138.234.141/ingress' + +// socket地址 +export const WSS_URL = "wss://onefeel.brother7.cn/ingress/agent/ws/chat"; diff --git a/pages/chat/ChatCardAI.vue b/pages/chat/ChatCardAI.vue index 106f3cf..46ad71b 100644 --- a/pages/chat/ChatCardAI.vue +++ b/pages/chat/ChatCardAI.vue @@ -1,7 +1,10 @@ diff --git a/pages/chat/ChatInputArea.vue b/pages/chat/ChatInputArea.vue index 0a9670b..c5f4c14 100644 --- a/pages/chat/ChatInputArea.vue +++ b/pages/chat/ChatInputArea.vue @@ -1,246 +1,252 @@