Compare commits

...

2 Commits

Author SHA1 Message Date
Phoenix
633ebca9a6 s 2024-01-30 09:11:56 +08:00
Phoenix
54438790ad s 2024-01-29 19:58:23 +08:00
4 changed files with 1033 additions and 500 deletions

File diff suppressed because it is too large Load Diff

View File

@ -5,8 +5,18 @@ import { useTheme } from '@/hooks/useTheme'
import { useLanguage } from '@/hooks/useLanguage'
import zhCN from 'ant-design-vue/es/locale/zh_CN';
const { theme, themeOverrides } = useTheme()
const { theme } = useTheme()
const { language } = useLanguage()
import { GlobalThemeOverrides } from 'naive-ui'
const themeOverrides: GlobalThemeOverrides = {
common: {
primaryColorHover:'#764CF6',
primaryColor:'#764CF6'
},
Button: {
textColor: '#764CF6'
}
}
</script>
<template>

View File

@ -22,7 +22,10 @@ export function useTheme() {
const themeOverrides = computed<GlobalThemeOverrides>(() => {
if (isDark.value) {
return {
common: {},
common: {
primaryColorHover:'#764CF6',
primaryColor:'#764CF6'
},
}
}
return {}

View File

@ -2,7 +2,7 @@
import {createSession} from "@/api/api";
import {storeToRefs} from "pinia";
import { computed, ref, watch } from 'vue'
import { NButton, NLayoutSider, useDialog } from 'naive-ui'
import { NButton, NLayoutSider, useDialog,NSelect } from 'naive-ui'
import List from './List.vue'
import Footer from './Footer.vue'
import { useAppStore, useChatStore } from '@/store'
@ -95,15 +95,8 @@ watch(
<NButton color="#764CF6" style="flex:0.9;display: flex;justify-content: center;align-items: center;margin-right: auto" dashed block @click="handleAdd">
新建会话
</NButton>
<div >
<a-select
align="center"
v-model:value="gptMode"
style="width: 110px"
:dropdown-match-select-width="false"
>
<a-select-option align="center" v-for="(item,index) in options" :key="index" :value="item.value">{{item.label}}</a-select-option>
</a-select>
<div style="width: 110px">
<n-select v-model:value="gptMode" :options="options" />
</div>
</div>
<div class="flex-1 min-h-0 pb-4 overflow-hidden">