From c2a5d6340bb8ed352c3078b2048a43362307d601 Mon Sep 17 00:00:00 2001 From: ivamp Date: Thu, 10 Oct 2024 11:27:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=92=8C=E8=BE=93=E5=85=A5=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components.d.ts | 1 + src/components/chat/Chat.vue | 32 ++++++-- src/components/chat/Layout.vue | 144 +++++++++++++++++++++++++++++++++ src/config/config.ts | 1 + src/layouts/DefaultLayout.vue | 14 +++- src/pages/chat/Chat.vue | 70 ++++++++++++++++ src/pages/index.vue | 5 +- src/stores/app.ts | 1 + src/typed-router.d.ts | 1 + 9 files changed, 258 insertions(+), 11 deletions(-) create mode 100644 src/components/chat/Layout.vue create mode 100644 src/pages/chat/Chat.vue diff --git a/src/components.d.ts b/src/components.d.ts index 3239a24..1ad5ffc 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -14,6 +14,7 @@ declare module 'vue' { Chat: typeof import('./components/chat/Chat.vue')['default'] ChatMenu: typeof import('./components/ChatMenu.vue')['default'] ChatSettings: typeof import('./components/settings/ChatSettings.vue')['default'] + Layout: typeof import('./components/chat/Layout.vue')['default'] LeftSettings: typeof import('./components/settings/LeftSettings.vue')['default'] LibrarySettings: typeof import('./components/settings/LibrarySettings.vue')['default'] Lottie: typeof import('./components/Lottie.vue')['default'] diff --git a/src/components/chat/Chat.vue b/src/components/chat/Chat.vue index e50c3e0..e1f7cb3 100644 --- a/src/components/chat/Chat.vue +++ b/src/components/chat/Chat.vue @@ -1,5 +1,5 @@ diff --git a/src/config/config.ts b/src/config/config.ts index a4ba602..139867a 100644 --- a/src/config/config.ts +++ b/src/config/config.ts @@ -19,6 +19,7 @@ if (process.env.NODE_ENV === "production") { config.backend = "https://amber-api.leaflow.cn"; + // console.log("api endpoint: " + config.backend); export default config; diff --git a/src/layouts/DefaultLayout.vue b/src/layouts/DefaultLayout.vue index 3a555b4..3e0e9d3 100644 --- a/src/layouts/DefaultLayout.vue +++ b/src/layouts/DefaultLayout.vue @@ -1,15 +1,16 @@