update:聊天记录展现

This commit is contained in:
hrz
2025-05-04 12:53:36 +08:00
parent afe88ccfd6
commit 4043d20ea6
6 changed files with 442 additions and 21 deletions
@@ -26,6 +26,9 @@
<div class="settings-btn" @click="handleDeviceManage">
设备管理({{ device.deviceCount }})
</div>
<div class="settings-btn" @click="handleChatHistory">
聊天记录
</div>
</div>
<div class="version-info">
<div>最近对话{{ device.lastConnectedAt }}</div>
@@ -51,6 +54,9 @@ export default {
},
handleDeviceManage() {
this.$router.push({ path: '/device-management', query: { agentId: this.device.agentId } });
},
handleChatHistory() {
this.$emit('chat-history', { agentId: this.device.agentId, agentName: this.device.agentName })
}
}
}