fix: 完善标题修复logo和title
This commit is contained in:
@@ -62,6 +62,7 @@ const design: DesignConfigState = {
|
||||
// 是否开启路由动画
|
||||
isPageAnimate: false,
|
||||
// 路由动画类型
|
||||
// 需要自定义路由动画可以把 Main 组件样式代码注释放开,从新对话切换到带id的路由时,会执行这个动画样式
|
||||
pageAnimateType: 'zoom-fade',
|
||||
// 布局模式 (纵向:vertical | ... | 自己定义)
|
||||
layout: 'vertical',
|
||||
|
||||
@@ -2,9 +2,6 @@
|
||||
// 首页地址[默认]
|
||||
export const HOME_URL: string = '/chat';
|
||||
|
||||
// 登录页地址[默认]
|
||||
// export const LOGIN_URL: string = '/login';
|
||||
|
||||
// 默认主题颜色
|
||||
export const DEFAULT_THEME_COLOR: string = '#2992FF';
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// 枚举库,暂时未用到,后续版本可能会用到
|
||||
import type { EnumValue } from '@jsonlee_12138/enum';
|
||||
import Enum from '@jsonlee_12138/enum';
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ function handleMenuCommand(command: string, item: ConversationItem<ChatSessionVo
|
||||
<div v-if="!designStore.isCollapse" class="aside-header">
|
||||
<div class="flex items-center gap-8px hover:cursor-pointer" @click="handleCreatChat">
|
||||
<el-image :src="logo" alt="logo" fit="cover" class="logo-img" />
|
||||
<span class="logo-text max-w-150px text-overflow">Elemennt-Plus-X</span>
|
||||
<span class="logo-text max-w-150px text-overflow">Element Plus X</span>
|
||||
</div>
|
||||
<Collapse class="ml-auto" />
|
||||
</div>
|
||||
|
||||
@@ -21,7 +21,7 @@ type MessageItem = BubbleProps & {
|
||||
role: 'ai' | 'user' | 'system';
|
||||
avatar: string;
|
||||
thinkingStatus?: ThinkingStatus;
|
||||
expanded?: boolean;
|
||||
thinlCollapse?: boolean;
|
||||
};
|
||||
|
||||
const route = useRoute();
|
||||
|
||||
@@ -13,7 +13,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'chat',
|
||||
component: () => import('@/pages/chat/index.vue'),
|
||||
meta: {
|
||||
title: '通用聊天页面',
|
||||
// title: '通用聊天页面',
|
||||
isDefaultChat: true,
|
||||
icon: 'HomeFilled',
|
||||
isHide: '1',
|
||||
@@ -27,7 +27,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
||||
name: 'chatWithId',
|
||||
component: () => import('@/pages/chat/index.vue'),
|
||||
meta: {
|
||||
title: '带 ID 的聊天页面',
|
||||
// title: '带 ID 的聊天页面',
|
||||
isDefaultChat: false,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user