Compare commits
No commits in common. "633ebca9a6508e18d31c6e03c95a3a7a00c6ec6f" and "e6b26e60897ad3d3d9b15da152b5f25a6566fd24" have entirely different histories.
633ebca9a6
...
e6b26e6089
1511
pnpm-lock.yaml
1511
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
12
src/App.vue
12
src/App.vue
@ -5,18 +5,8 @@ import { useTheme } from '@/hooks/useTheme'
|
|||||||
import { useLanguage } from '@/hooks/useLanguage'
|
import { useLanguage } from '@/hooks/useLanguage'
|
||||||
import zhCN from 'ant-design-vue/es/locale/zh_CN';
|
import zhCN from 'ant-design-vue/es/locale/zh_CN';
|
||||||
|
|
||||||
const { theme } = useTheme()
|
const { theme, themeOverrides } = useTheme()
|
||||||
const { language } = useLanguage()
|
const { language } = useLanguage()
|
||||||
import { GlobalThemeOverrides } from 'naive-ui'
|
|
||||||
const themeOverrides: GlobalThemeOverrides = {
|
|
||||||
common: {
|
|
||||||
primaryColorHover:'#764CF6',
|
|
||||||
primaryColor:'#764CF6'
|
|
||||||
},
|
|
||||||
Button: {
|
|
||||||
textColor: '#764CF6'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
@ -22,10 +22,7 @@ export function useTheme() {
|
|||||||
const themeOverrides = computed<GlobalThemeOverrides>(() => {
|
const themeOverrides = computed<GlobalThemeOverrides>(() => {
|
||||||
if (isDark.value) {
|
if (isDark.value) {
|
||||||
return {
|
return {
|
||||||
common: {
|
common: {},
|
||||||
primaryColorHover:'#764CF6',
|
|
||||||
primaryColor:'#764CF6'
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return {}
|
return {}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
import {createSession} from "@/api/api";
|
import {createSession} from "@/api/api";
|
||||||
import {storeToRefs} from "pinia";
|
import {storeToRefs} from "pinia";
|
||||||
import { computed, ref, watch } from 'vue'
|
import { computed, ref, watch } from 'vue'
|
||||||
import { NButton, NLayoutSider, useDialog,NSelect } from 'naive-ui'
|
import { NButton, NLayoutSider, useDialog } from 'naive-ui'
|
||||||
import List from './List.vue'
|
import List from './List.vue'
|
||||||
import Footer from './Footer.vue'
|
import Footer from './Footer.vue'
|
||||||
import { useAppStore, useChatStore } from '@/store'
|
import { useAppStore, useChatStore } from '@/store'
|
||||||
@ -95,8 +95,15 @@ watch(
|
|||||||
<NButton color="#764CF6" style="flex:0.9;display: flex;justify-content: center;align-items: center;margin-right: auto" dashed block @click="handleAdd">
|
<NButton color="#764CF6" style="flex:0.9;display: flex;justify-content: center;align-items: center;margin-right: auto" dashed block @click="handleAdd">
|
||||||
新建会话
|
新建会话
|
||||||
</NButton>
|
</NButton>
|
||||||
<div style="width: 110px">
|
<div >
|
||||||
<n-select v-model:value="gptMode" :options="options" />
|
<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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1 min-h-0 pb-4 overflow-hidden">
|
<div class="flex-1 min-h-0 pb-4 overflow-hidden">
|
||||||
|
Loading…
Reference in New Issue
Block a user