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) => {