refactor(frontend): 统一 Element 语言注入并抽出全站皮肤

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
sophieandCursor committed 2026-10-27 19:49:05 +08:00
1 parent a10ecc8073
commit 81d82a88d5
28 files changed
+144 -240

No files matched your search

@@ -2,14 +2,15 @@
/**
* features/chat/views/ChatView.vue
* 单个 Agent 对话页入口:provide 编排上下文,子组件 inject 消费。
* 依赖:useChatPage、ChatViewContent/ChatViewOverlays。
* 依赖:useChatPage、ChatViewContent/ChatViewOverlays、shared/styles/element-theme.css。
* 逻辑:在途调拨业务面板(Transfer* 组件)已 EP 组件化(el-dialog/el-table/el-select),
* EP 样式随本页入口全量引入(亮色 + 暗色变量,模式同 admin 页面内引入),
* 保证 chat 直达时样式就绪、不依赖 admin 路由先行加载。
* EP 官方样式和全站 element-theme.css 随本页入口引入,放在暗色变量之后。
* 不引管理端 element-trial.css。保证 chat 直达时样式就绪、不依赖 admin 路由先行加载。
*/
import { provide, reactive } from 'vue';
import 'element-plus/dist/index.css';
import 'element-plus/theme-chalk/dark/css-vars.css';
import '@/shared/styles/element-theme.css';
import { useChatPage } from '@/features/chat/composables/useChatPage';
import { CHAT_PAGE_KEY, type ChatPageContextProvided } from '@/features/chat/composables/chat.context';
import ChatViewContent from '@/features/chat/components/ChatViewContent.vue';