From b834fb8e2428f24802cc9f4ca9b0bebdc0b428f2 Mon Sep 17 00:00:00 2001 From: wenjinbo <599483010@qq.com> Date: Mon, 13 Oct 2025 16:08:03 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=87=8D=E6=9E=84=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../library/build/vuePlugins/components.d.ts | 1 + .../VabTheme/components/VabThemeDrawer.vue | 5 ++++- chat-client/src/config/theme.config.js | 8 ++++---- chat-client/src/router/index.ts | 18 ++++++++++++++++++ 4 files changed, 27 insertions(+), 5 deletions(-) diff --git a/chat-client/library/build/vuePlugins/components.d.ts b/chat-client/library/build/vuePlugins/components.d.ts index c38d52b..9930c98 100644 --- a/chat-client/library/build/vuePlugins/components.d.ts +++ b/chat-client/library/build/vuePlugins/components.d.ts @@ -117,6 +117,7 @@ declare module 'vue' { VabTheme: typeof import('./../../components/VabTheme/index.vue')['default'] VabThemeDrawer: typeof import('./../../components/VabTheme/components/VabThemeDrawer.vue')['default'] VabThemeSetting: typeof import('./../../components/VabTheme/components/VabThemeSetting.vue')['default'] + VabTopBar: typeof import('./../../components/VabTopBar/index.vue')['default'] } export interface ComponentCustomProperties { vLoading: typeof import('element-plus/es')['ElLoadingDirective'] diff --git a/chat-client/library/components/VabTheme/components/VabThemeDrawer.vue b/chat-client/library/components/VabTheme/components/VabThemeDrawer.vue index e0a4889..0d9b7b1 100644 --- a/chat-client/library/components/VabTheme/components/VabThemeDrawer.vue +++ b/chat-client/library/components/VabTheme/components/VabThemeDrawer.vue @@ -43,6 +43,7 @@ await resetTheme() theme.value.themeName = shuffle(theme.value.themeName, [ + 'tech-dark', 'blue-black', 'blue-white', 'ocean', @@ -61,7 +62,7 @@ theme.value.tabsBarStyle = shuffle(theme.value.tabsBarStyle, ['card', 'smart', 'smooth']) theme.value.showTabsIcon = shuffle(theme.value.showTabsIcon, [true, false]) theme.value.layout = - device.value === 'desktop' ? shuffle(theme.value.layout, ['horizontal', 'vertical', 'column', 'comprehensive', 'common', 'float']) : 'vertical' + device.value === 'desktop' ? shuffle(theme.value.layout, ['fullscreen', 'horizontal', 'vertical', 'column', 'comprehensive', 'common', 'float']) : 'vertical' try { await updateTheme() @@ -98,6 +99,7 @@ + @@ -108,6 +110,7 @@ + diff --git a/chat-client/src/config/theme.config.js b/chat-client/src/config/theme.config.js index b59386f..1341e0d 100644 --- a/chat-client/src/config/theme.config.js +++ b/chat-client/src/config/theme.config.js @@ -2,11 +2,11 @@ * @description 导出主题配置,注意事项:此配置下的项修改后需清理浏览器缓存!!! */ module.exports = { - // 布局种类:横向布局horizontal、纵向布局vertical、分栏布局column、综合布局comprehensive、常规布局common、浮动布局float - layout: 'hv', - // 主题名称:默认blue-black、blue-white、green-black、green-white、渐变ocean、red-white、red-black + // 布局种类:横向布局horizontal、纵向布局vertical、分栏布局column、综合布局comprehensive、常规布局common、浮动布局float、全屏布局fullscreen + layout: 'fullscreen', + // 主题名称:默认blue-black、blue-white、green-black、green-white、渐变ocean、red-white、red-black、科技风tech-dark //从/library/styles/variables+background下匹配样式文件,修改对应变量值 - themeName: 'blue-tzl', + themeName: 'tech-dark', // 菜单背景 none、vab-background background: 'none', // 菜单宽度,仅支持px,建议大小:266px、277px、288px,其余尺寸会影响美观 ,另太小会自动隐藏标题 diff --git a/chat-client/src/router/index.ts b/chat-client/src/router/index.ts index 814b4aa..b1510c2 100644 --- a/chat-client/src/router/index.ts +++ b/chat-client/src/router/index.ts @@ -75,6 +75,24 @@ export const asyncRoutes: VabRouteRecord[] = [ icon: 'home-2-line', }, }, + { + path: '/commQA', + name: 'commQA', + component: () => import('@/views/chatweb/commQA/index.vue'), + meta: { + title: '通用问答', + icon: 'question-answer-line', + }, + }, + { + path: 'chatweb/historicalRecords', + name: 'historicalRecords', + component: () => import('@/views/chatweb/historicalRecords/index.vue'), + meta: { + title: '历史记录', + icon: 'history-line', + }, + }, ],