Initial commit: Update project structure and add new features
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div class="flex flex-1 w-full h-full overflow-hidden">
|
||||
<!-- 聊天窗口 -->
|
||||
<ChatWindow :bubbles="currentBubbles" @send="handleSendMessage" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import ChatWindow from '@/components/chat/ChatWindow.vue';
|
||||
import { useChat } from '@/composables/useChat';
|
||||
import { useNotification } from '@/composables/useNotifition';
|
||||
|
||||
definePage({
|
||||
name: '消息',
|
||||
})
|
||||
|
||||
const {
|
||||
selectedChat,
|
||||
currentBubbles,
|
||||
sendMessage,
|
||||
} = useChat()
|
||||
|
||||
|
||||
|
||||
// 发送消息
|
||||
const handleSendMessage = (content: string) => {
|
||||
sendMessage(content)
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
Reference in New Issue
Block a user