From 8abb0439f67954e94f6852061176b7dc2d7568fe Mon Sep 17 00:00:00 2001 From: Phoenix <64720302+Concur-max@users.noreply.github.com> Date: Wed, 22 May 2024 11:26:44 +0800 Subject: [PATCH] 123 --- package.json | 1 + src/App.vue | 6 +++--- src/store/modules/session/index.js | 3 ++- src/views/chat/index.vue | 1 - src/views/chat/layout/sider/index.vue | 2 +- src/views/chat/test.vue | 11 +++++++++++ 6 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 src/views/chat/test.vue diff --git a/package.json b/package.json index afd5d7a..9ffe87d 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ ], "scripts": { "dev": "vite", + "prod": "vite --mode prod", "build": "vite build", "preview": "vite preview", "build-prod": "vite build --mode prod", diff --git a/src/App.vue b/src/App.vue index 612ce1d..9b172cf 100644 --- a/src/App.vue +++ b/src/App.vue @@ -17,11 +17,11 @@ import {Local} from './utils/storage/storage.js' } *!/ */ const themeOverrides = { common: { - primaryColorHover:'#764CF6', - primaryColor:'#764CF6' + primaryColorHover:Local.get('setting-info')?.themeColor?.split("@")?.[1]??'#764CF6', + primaryColor:Local.get('setting-info')?.themeColor?.split("@")?.[1]??'#764CF6', }, Button: { - textColor: '#764CF6' + textColor: Local.get('setting-info')?.themeColor?.split("@")?.[1]??'#764CF6', } } diff --git a/src/store/modules/session/index.js b/src/store/modules/session/index.js index 3e0d42c..add5c1c 100644 --- a/src/store/modules/session/index.js +++ b/src/store/modules/session/index.js @@ -11,6 +11,7 @@ const currentListUuid=ref('') const isStop = ref(false); const isGPT4 = ref(false); const loading=ref(false) + const show=ref(false) const getDataList = async () => { const data = { page: 1, @@ -64,5 +65,5 @@ const currentListUuid=ref('') //getDataList() } } - return { sessionDetail,currentListUuid ,gptMode,getDataList,dataList,getSessionDetail,createSessionStore,deleteSession,isStop,isGPT4,loading}; + return {show, sessionDetail,currentListUuid ,gptMode,getDataList,dataList,getSessionDetail,createSessionStore,deleteSession,isStop,isGPT4,loading}; }); diff --git a/src/views/chat/index.vue b/src/views/chat/index.vue index aa5968a..6530034 100644 --- a/src/views/chat/index.vue +++ b/src/views/chat/index.vue @@ -485,7 +485,6 @@ const customRequest = async (file) => {