From edbb5ec5ba214e04c72b19fb6bffee9eb2666723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=98=89=E6=82=A6?= Date: Mon, 26 May 2025 19:48:39 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20:sparkles:=20=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E4=BC=9A=E8=AF=9D=E7=AE=A1=E7=90=86=EF=BC=8C=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=9B=9E=E8=AF=9D=E7=AE=A1=E7=90=86=E8=AF=A6=E6=83=85=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=92=8C=E8=A6=86=E7=9B=96=E4=BF=AE=E6=94=B9=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/api/session/index.ts | 4 + src/api/session/types.ts | 4 + src/components/LoginDialog/index.vue | 2 +- src/components/WelecomeText/index.vue | 20 +- src/layouts/LayoutMobile/index.vue | 2 +- src/layouts/components/Aside/index.vue | 29 ++- .../components/Header/components/Avatar.vue | 1 + src/layouts/components/Header/index.vue | 15 +- src/stores/modules/session.ts | 176 ++++++++++++------ src/utils/request.ts | 19 ++ 11 files changed, 192 insertions(+), 84 deletions(-) diff --git a/.env.development b/.env.development index 53f0f20..cc1dce9 100644 --- a/.env.development +++ b/.env.development @@ -11,4 +11,6 @@ VITE_WEB_ENV = 'development' VITE_WEB_BASE_API = '/dev-api' # 本地接口 -VITE_API_URL = http://122.51.75.95:6039 +# VITE_API_URL = http://122.51.75.95:6039 + +VITE_API_URL = http://129.211.24.7:6039 diff --git a/src/api/session/index.ts b/src/api/session/index.ts index a62d1f2..04e1f61 100644 --- a/src/api/session/index.ts +++ b/src/api/session/index.ts @@ -18,6 +18,10 @@ export function update_session(data: ChatSessionVo) { return put('/system/session', data); } +export function get_session(id: string) { + return get(`/system/session/${id}`); +} + export function delete_session(ids: string[]) { return del(`/system/session/${ids}`); } diff --git a/src/api/session/types.ts b/src/api/session/types.ts index af19924..797c0de 100644 --- a/src/api/session/types.ts +++ b/src/api/session/types.ts @@ -88,6 +88,10 @@ export interface ChatSessionVo { * 用户id */ userId?: number; + /** + * 创建时间 + */ + createTime?: Date; /** * 自定义的消息前缀图标字段 */ diff --git a/src/components/LoginDialog/index.vue b/src/components/LoginDialog/index.vue index d5a8691..c6b01fb 100644 --- a/src/components/LoginDialog/index.vue +++ b/src/components/LoginDialog/index.vue @@ -122,7 +122,7 @@ function onAfterLeave() { height: 100vh; background-color: rgba(0, 0, 0, 0.5); backdrop-filter: blur(3px); - z-index: 99999; + z-index: 2000; display: flex; align-items: center; justify-content: center; diff --git a/src/components/WelecomeText/index.vue b/src/components/WelecomeText/index.vue index aac9285..26e41be 100644 --- a/src/components/WelecomeText/index.vue +++ b/src/components/WelecomeText/index.vue @@ -1,5 +1,6 @@