Compare commits
2 Commits
e6b26e6089
...
633ebca9a6
Author | SHA1 | Date | |
---|---|---|---|
|
633ebca9a6 | ||
|
54438790ad |
1503
pnpm-lock.yaml
1503
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
12
src/App.vue
12
src/App.vue
@ -5,8 +5,18 @@ 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, themeOverrides } = useTheme()
|
const { theme } = 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,7 +22,10 @@ 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 } from 'naive-ui'
|
import { NButton, NLayoutSider, useDialog,NSelect } 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,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 color="#764CF6" style="flex:0.9;display: flex;justify-content: center;align-items: center;margin-right: auto" dashed block @click="handleAdd">
|
||||||
新建会话
|
新建会话
|
||||||
</NButton>
|
</NButton>
|
||||||
<div >
|
<div style="width: 110px">
|
||||||
<a-select
|
<n-select v-model:value="gptMode" :options="options" />
|
||||||
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