feat: Chat 页面新增群聊功能入口

This commit is contained in:
2026-03-15 21:47:45 +08:00
parent d9484f16c7
commit b8944813cf
2 changed files with 27 additions and 4 deletions

View File

@@ -189,6 +189,11 @@ const handleSelectModel = (model: any) => {
showModelDropdown.value = false
}
// 打开群聊选择器
const openGroupChat = () => {
openAgentSelector('group')
}
// 删除会话
const handleDeleteSession = async (session: any) => {
try {
@@ -310,10 +315,16 @@ onUnmounted(() => {
<div class="empty-logo">🧠</div>
<h2 class="empty-title">欢迎使用 X-Agents</h2>
<p class="empty-desc">与智能 AI 助手对话获取专业解答与创意灵感</p>
<button @click="newChat" class="empty-btn">
<i class="fa-solid fa-plus mr-2"></i>
开始新对话
</button>
<div class="flex gap-4 justify-center">
<button @click="newChat" class="empty-btn">
<i class="fa-solid fa-plus mr-2"></i>
开始新对话
</button>
<button @click="openGroupChat" class="empty-btn empty-btn-secondary">
<i class="fa-solid fa-users mr-2"></i>
开始群聊
</button>
</div>
</div>
</div>
<!-- 有会话但无消息时显示欢迎提示 -->