From dd36ccc118801d6f490b7a7b89d3d4a636aa5feb Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Wed, 27 May 2026 07:35:28 +0800 Subject: [PATCH] refactor: standardize import paths and clean up unused code Migrate legacy relative API imports to consistent absolute @/api paths across all components Remove unnecessary .js file extensions from ES module imports Add new StreamManager utility and base client configuration constants file Clean up unused imports and dynamic config calls in ChatGuide and ChatInputArea components Update the index.html page title to "nianxx" Replace dynamic OSS URL and local text imports in ChatGuide with hardcoded static values --- index.html | 7 ++- src/components/CreateServiceOrder/index.vue | 4 +- src/components/Feedback/index.vue | 2 +- src/constants/base.ts | 59 +++++++++++++++++++ .../home/components/AnswerComponent/index.vue | 4 +- src/pages/home/components/ChatGuide/index.vue | 6 +- .../home/components/ChatInputArea/index.vue | 13 +--- .../home/components/ChatLongAnswer/index.vue | 2 +- .../home/components/ChatQuickAccess/index.vue | 2 +- src/pages/home/components/Discovery/index.vue | 4 +- .../order/components/OrderCard/index.vue | 2 +- src/pages/service/order/index.vue | 2 +- src/utils/StreamManager.ts | 58 ++++++++++++++++++ 13 files changed, 138 insertions(+), 27 deletions(-) create mode 100644 src/constants/base.ts create mode 100644 src/utils/StreamManager.ts diff --git a/index.html b/index.html index bedd4a2..60c3a4f 100644 --- a/index.html +++ b/index.html @@ -2,9 +2,12 @@ - + - YGChatCS Web + nianxx
diff --git a/src/components/CreateServiceOrder/index.vue b/src/components/CreateServiceOrder/index.vue index 9beb326..6233c96 100644 --- a/src/components/CreateServiceOrder/index.vue +++ b/src/components/CreateServiceOrder/index.vue @@ -72,8 +72,8 @@ diff --git a/src/pages/home/components/ChatInputArea/index.vue b/src/pages/home/components/ChatInputArea/index.vue index d863b52..eb621f2 100644 --- a/src/pages/home/components/ChatInputArea/index.vue +++ b/src/pages/home/components/ChatInputArea/index.vue @@ -61,19 +61,14 @@