refactor: 调整聊天组件为按需引入
- 移除 bootstrap 中 vue-element-plus-x 全局组件注册 - 在聊天与会话页面改为局部引入对应组件
This commit is contained in:
@@ -3,6 +3,7 @@ import type { BotInfo, Session } from '@easyflow/types';
|
||||
|
||||
import { onMounted, ref, watchEffect } from 'vue';
|
||||
import { useRoute, useRouter } from 'vue-router';
|
||||
import ElConversations from 'vue-element-plus-x/es/Conversations/index.js';
|
||||
|
||||
import { IconifyIcon } from '@easyflow/icons';
|
||||
import { preferences } from '@easyflow/preferences';
|
||||
|
||||
@@ -4,6 +4,7 @@ import type {ServerSentEventMessage} from 'fetch-event-stream';
|
||||
|
||||
import {computed, nextTick, onBeforeUnmount, onMounted, ref, watch} from 'vue';
|
||||
import {useRoute} from 'vue-router';
|
||||
import ElXMarkdown from 'vue-element-plus-x/es/XMarkdown/index.js';
|
||||
|
||||
import {IconifyIcon} from '@easyflow/icons';
|
||||
import {$t} from '@easyflow/locales';
|
||||
|
||||
Reference in New Issue
Block a user