20 lines
705 B
Vue
20 lines
705 B
Vue
<script setup lang="ts">
|
|
/**
|
|
* features/chat/views/ChatView.vue
|
|
* 单个 Agent 对话页入口:provide 编排上下文,子组件 inject 消费。
|
|
*/
|
|
import { provide, reactive } from 'vue';
|
|
import { useChatPage } from '@/features/chat/composables/useChatPage';
|
|
import { CHAT_PAGE_KEY, type ChatPageContextProvided } from '@/features/chat/composables/chat.context';
|
|
import ChatViewContent from '@/features/chat/components/ChatViewContent.vue';
|
|
import ChatViewOverlays from '@/features/chat/components/ChatViewOverlays.vue';
|
|
|
|
const page = reactive(useChatPage()) as ChatPageContextProvided;
|
|
provide(CHAT_PAGE_KEY, page);
|
|
</script>
|
|
|
|
<template>
|
|
<ChatViewContent />
|
|
<ChatViewOverlays />
|
|
</template>
|