feat: Chat 页面新增群聊功能入口
This commit is contained in:
@@ -189,6 +189,11 @@ const handleSelectModel = (model: any) => {
|
|||||||
showModelDropdown.value = false
|
showModelDropdown.value = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 打开群聊选择器
|
||||||
|
const openGroupChat = () => {
|
||||||
|
openAgentSelector('group')
|
||||||
|
}
|
||||||
|
|
||||||
// 删除会话
|
// 删除会话
|
||||||
const handleDeleteSession = async (session: any) => {
|
const handleDeleteSession = async (session: any) => {
|
||||||
try {
|
try {
|
||||||
@@ -310,10 +315,16 @@ onUnmounted(() => {
|
|||||||
<div class="empty-logo">🧠</div>
|
<div class="empty-logo">🧠</div>
|
||||||
<h2 class="empty-title">欢迎使用 X-Agents</h2>
|
<h2 class="empty-title">欢迎使用 X-Agents</h2>
|
||||||
<p class="empty-desc">与智能 AI 助手对话,获取专业解答与创意灵感</p>
|
<p class="empty-desc">与智能 AI 助手对话,获取专业解答与创意灵感</p>
|
||||||
<button @click="newChat" class="empty-btn">
|
<div class="flex gap-4 justify-center">
|
||||||
<i class="fa-solid fa-plus mr-2"></i>
|
<button @click="newChat" class="empty-btn">
|
||||||
开始新对话
|
<i class="fa-solid fa-plus mr-2"></i>
|
||||||
</button>
|
开始新对话
|
||||||
|
</button>
|
||||||
|
<button @click="openGroupChat" class="empty-btn empty-btn-secondary">
|
||||||
|
<i class="fa-solid fa-users mr-2"></i>
|
||||||
|
开始群聊
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 有会话但无消息时显示欢迎提示 -->
|
<!-- 有会话但无消息时显示欢迎提示 -->
|
||||||
|
|||||||
@@ -133,6 +133,18 @@
|
|||||||
transform: translateY(0);
|
transform: translateY(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.empty-btn-secondary {
|
||||||
|
background: rgba(255, 255, 255, 0.08);
|
||||||
|
border: 1px solid rgba(255, 255, 255, 0.12);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.empty-btn-secondary:hover {
|
||||||
|
background: rgba(255, 255, 255, 0.12);
|
||||||
|
border-color: rgba(255, 255, 255, 0.2);
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* 推荐智能体卡片 */
|
/* 推荐智能体卡片 */
|
||||||
.recommend-section {
|
.recommend-section {
|
||||||
margin-top: 48px;
|
margin-top: 48px;
|
||||||
|
|||||||
Reference in New Issue
Block a user