fix: 完善标题修复logo和title
This commit is contained in:
parent
63e4ce739b
commit
184aa12094
@ -1,8 +1,8 @@
|
|||||||
# 页面标题
|
# 页面标题
|
||||||
VITE_WEB_TITLE = elx-template
|
VITE_WEB_TITLE = chat-template
|
||||||
|
|
||||||
# 页面英文标题
|
# 页面英文标题
|
||||||
VITE_WEB_TITLE_EN = elx-template
|
VITE_WEB_TITLE_EN = chat-template
|
||||||
|
|
||||||
# 本地环境配置
|
# 本地环境配置
|
||||||
VITE_WEB_ENV = 'development'
|
VITE_WEB_ENV = 'development'
|
||||||
|
|||||||
@ -1,8 +1,8 @@
|
|||||||
# 页面标题
|
# 页面标题
|
||||||
VITE_WEB_TITLE = elx-template
|
VITE_WEB_TITLE = chat-template
|
||||||
|
|
||||||
# 页面英文标题
|
# 页面英文标题
|
||||||
VITE_WEB_TITLE_EN = elx-template
|
VITE_WEB_TITLE_EN = chat-template
|
||||||
|
|
||||||
# 生产环境配置
|
# 生产环境配置
|
||||||
VITE_WEB_ENV = 'production'
|
VITE_WEB_ENV = 'production'
|
||||||
|
|||||||
@ -3,10 +3,9 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>%VITE_WEB_TITLE%</title>
|
<title>%VITE_WEB_TITLE%</title>
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
BIN
public/favicon.ico
Normal file
BIN
public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
|
|
||||||
|
Before Width: | Height: | Size: 1.5 KiB |
@ -62,6 +62,7 @@ const design: DesignConfigState = {
|
|||||||
// 是否开启路由动画
|
// 是否开启路由动画
|
||||||
isPageAnimate: false,
|
isPageAnimate: false,
|
||||||
// 路由动画类型
|
// 路由动画类型
|
||||||
|
// 需要自定义路由动画可以把 Main 组件样式代码注释放开,从新对话切换到带id的路由时,会执行这个动画样式
|
||||||
pageAnimateType: 'zoom-fade',
|
pageAnimateType: 'zoom-fade',
|
||||||
// 布局模式 (纵向:vertical | ... | 自己定义)
|
// 布局模式 (纵向:vertical | ... | 自己定义)
|
||||||
layout: 'vertical',
|
layout: 'vertical',
|
||||||
|
|||||||
@ -2,9 +2,6 @@
|
|||||||
// 首页地址[默认]
|
// 首页地址[默认]
|
||||||
export const HOME_URL: string = '/chat';
|
export const HOME_URL: string = '/chat';
|
||||||
|
|
||||||
// 登录页地址[默认]
|
|
||||||
// export const LOGIN_URL: string = '/login';
|
|
||||||
|
|
||||||
// 默认主题颜色
|
// 默认主题颜色
|
||||||
export const DEFAULT_THEME_COLOR: string = '#2992FF';
|
export const DEFAULT_THEME_COLOR: string = '#2992FF';
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
// 枚举库,暂时未用到,后续版本可能会用到
|
||||||
import type { EnumValue } from '@jsonlee_12138/enum';
|
import type { EnumValue } from '@jsonlee_12138/enum';
|
||||||
import Enum 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 v-if="!designStore.isCollapse" class="aside-header">
|
||||||
<div class="flex items-center gap-8px hover:cursor-pointer" @click="handleCreatChat">
|
<div class="flex items-center gap-8px hover:cursor-pointer" @click="handleCreatChat">
|
||||||
<el-image :src="logo" alt="logo" fit="cover" class="logo-img" />
|
<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>
|
</div>
|
||||||
<Collapse class="ml-auto" />
|
<Collapse class="ml-auto" />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -21,7 +21,7 @@ type MessageItem = BubbleProps & {
|
|||||||
role: 'ai' | 'user' | 'system';
|
role: 'ai' | 'user' | 'system';
|
||||||
avatar: string;
|
avatar: string;
|
||||||
thinkingStatus?: ThinkingStatus;
|
thinkingStatus?: ThinkingStatus;
|
||||||
expanded?: boolean;
|
thinlCollapse?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|||||||
@ -13,7 +13,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
|||||||
name: 'chat',
|
name: 'chat',
|
||||||
component: () => import('@/pages/chat/index.vue'),
|
component: () => import('@/pages/chat/index.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '通用聊天页面',
|
// title: '通用聊天页面',
|
||||||
isDefaultChat: true,
|
isDefaultChat: true,
|
||||||
icon: 'HomeFilled',
|
icon: 'HomeFilled',
|
||||||
isHide: '1',
|
isHide: '1',
|
||||||
@ -27,7 +27,7 @@ export const layoutRouter: RouteRecordRaw[] = [
|
|||||||
name: 'chatWithId',
|
name: 'chatWithId',
|
||||||
component: () => import('@/pages/chat/index.vue'),
|
component: () => import('@/pages/chat/index.vue'),
|
||||||
meta: {
|
meta: {
|
||||||
title: '带 ID 的聊天页面',
|
// title: '带 ID 的聊天页面',
|
||||||
isDefaultChat: false,
|
isDefaultChat: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
2
types/components.d.ts
vendored
2
types/components.d.ts
vendored
@ -11,7 +11,6 @@ declare module 'vue' {
|
|||||||
AccountPassword: typeof import('./../src/components/LoginDialog/components/FormLogin/AccountPassword.vue')['default']
|
AccountPassword: typeof import('./../src/components/LoginDialog/components/FormLogin/AccountPassword.vue')['default']
|
||||||
DeepThinking: typeof import('./../src/components/DeepThinking/index.vue')['default']
|
DeepThinking: typeof import('./../src/components/DeepThinking/index.vue')['default']
|
||||||
ElAvatar: typeof import('element-plus/es')['ElAvatar']
|
ElAvatar: typeof import('element-plus/es')['ElAvatar']
|
||||||
ElButtom: typeof import('element-plus/es')['ElButtom']
|
|
||||||
ElButton: typeof import('element-plus/es')['ElButton']
|
ElButton: typeof import('element-plus/es')['ElButton']
|
||||||
ElContainer: typeof import('element-plus/es')['ElContainer']
|
ElContainer: typeof import('element-plus/es')['ElContainer']
|
||||||
ElDivider: typeof import('element-plus/es')['ElDivider']
|
ElDivider: typeof import('element-plus/es')['ElDivider']
|
||||||
@ -22,7 +21,6 @@ declare module 'vue' {
|
|||||||
ElIcon: typeof import('element-plus/es')['ElIcon']
|
ElIcon: typeof import('element-plus/es')['ElIcon']
|
||||||
ElImage: typeof import('element-plus/es')['ElImage']
|
ElImage: typeof import('element-plus/es')['ElImage']
|
||||||
ElInput: typeof import('element-plus/es')['ElInput']
|
ElInput: typeof import('element-plus/es')['ElInput']
|
||||||
ElLink: typeof import('element-plus/es')['ElLink']
|
|
||||||
ElMain: typeof import('element-plus/es')['ElMain']
|
ElMain: typeof import('element-plus/es')['ElMain']
|
||||||
FilesSelect: typeof import('./../src/components/FilesSelect/index.vue')['default']
|
FilesSelect: typeof import('./../src/components/FilesSelect/index.vue')['default']
|
||||||
IconSelect: typeof import('./../src/components/IconSelect/index.vue')['default']
|
IconSelect: typeof import('./../src/components/IconSelect/index.vue')['default']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user