diff --git a/.env.development b/.env.development index 9508981..7fea9a5 100644 --- a/.env.development +++ b/.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 = 'development' diff --git a/.env.production b/.env.production index 6020817..908a4ad 100644 --- a/.env.production +++ b/.env.production @@ -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' diff --git a/index.html b/index.html index 280a952..113714e 100644 --- a/index.html +++ b/index.html @@ -3,10 +3,9 @@ - + %VITE_WEB_TITLE% - diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..80854c5 Binary files /dev/null and b/public/favicon.ico differ diff --git a/public/vite.svg b/public/vite.svg deleted file mode 100644 index e7b8dfb..0000000 --- a/public/vite.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/src/config/design.ts b/src/config/design.ts index e3809c5..d7af973 100644 --- a/src/config/design.ts +++ b/src/config/design.ts @@ -62,6 +62,7 @@ const design: DesignConfigState = { // 是否开启路由动画 isPageAnimate: false, // 路由动画类型 + // 需要自定义路由动画可以把 Main 组件样式代码注释放开,从新对话切换到带id的路由时,会执行这个动画样式 pageAnimateType: 'zoom-fade', // 布局模式 (纵向:vertical | ... | 自己定义) layout: 'vertical', diff --git a/src/config/index.ts b/src/config/index.ts index 4cc82bd..245c8d0 100644 --- a/src/config/index.ts +++ b/src/config/index.ts @@ -2,9 +2,6 @@ // 首页地址[默认] export const HOME_URL: string = '/chat'; -// 登录页地址[默认] -// export const LOGIN_URL: string = '/login'; - // 默认主题颜色 export const DEFAULT_THEME_COLOR: string = '#2992FF'; diff --git a/src/constants/enums.ts b/src/constants/enums.ts index a5235d2..99ccd2c 100644 --- a/src/constants/enums.ts +++ b/src/constants/enums.ts @@ -1,3 +1,4 @@ +// 枚举库,暂时未用到,后续版本可能会用到 import type { EnumValue } from '@jsonlee_12138/enum'; import Enum from '@jsonlee_12138/enum'; diff --git a/src/layouts/components/Aside/index.vue b/src/layouts/components/Aside/index.vue index f4e8f83..0596eda 100644 --- a/src/layouts/components/Aside/index.vue +++ b/src/layouts/components/Aside/index.vue @@ -149,7 +149,7 @@ function handleMenuCommand(command: string, item: ConversationItem
- Elemennt-Plus-X + Element Plus X
diff --git a/src/pages/chat/layouts/chatWithId/index.vue b/src/pages/chat/layouts/chatWithId/index.vue index 4c8ad85..1063343 100644 --- a/src/pages/chat/layouts/chatWithId/index.vue +++ b/src/pages/chat/layouts/chatWithId/index.vue @@ -21,7 +21,7 @@ type MessageItem = BubbleProps & { role: 'ai' | 'user' | 'system'; avatar: string; thinkingStatus?: ThinkingStatus; - expanded?: boolean; + thinlCollapse?: boolean; }; const route = useRoute(); diff --git a/src/routers/modules/staticRouter.ts b/src/routers/modules/staticRouter.ts index 6efa44a..e4105b7 100644 --- a/src/routers/modules/staticRouter.ts +++ b/src/routers/modules/staticRouter.ts @@ -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, }, }, diff --git a/types/components.d.ts b/types/components.d.ts index 90bcc6e..a0fadd3 100644 --- a/types/components.d.ts +++ b/types/components.d.ts @@ -11,7 +11,6 @@ declare module 'vue' { AccountPassword: typeof import('./../src/components/LoginDialog/components/FormLogin/AccountPassword.vue')['default'] DeepThinking: typeof import('./../src/components/DeepThinking/index.vue')['default'] ElAvatar: typeof import('element-plus/es')['ElAvatar'] - ElButtom: typeof import('element-plus/es')['ElButtom'] ElButton: typeof import('element-plus/es')['ElButton'] ElContainer: typeof import('element-plus/es')['ElContainer'] ElDivider: typeof import('element-plus/es')['ElDivider'] @@ -22,7 +21,6 @@ declare module 'vue' { ElIcon: typeof import('element-plus/es')['ElIcon'] ElImage: typeof import('element-plus/es')['ElImage'] ElInput: typeof import('element-plus/es')['ElInput'] - ElLink: typeof import('element-plus/es')['ElLink'] ElMain: typeof import('element-plus/es')['ElMain'] FilesSelect: typeof import('./../src/components/FilesSelect/index.vue')['default'] IconSelect: typeof import('./../src/components/IconSelect/index.vue')['default']