Merge branch 'feature/dsw' into prebuild

# Conflicts:
#	package-lock.json
This commit is contained in:
2026-04-06 20:49:55 +08:00
5 changed files with 250 additions and 10 deletions

View File

@@ -7,18 +7,25 @@
</div>
<TaskList />
</div>
<TaskOperationDialog ref="taskOperationDialogRef" />
</layout>
</template>
<script setup lang="ts">
import TaskList from '@renderer/components/TaskList/index.vue'
import TaskOperationDialog from '@renderer/views/home/components/TaskOperationDialog.vue'
import ChatHistory from './ChatHistory.vue'
import ChatBox from './ChatBox.vue'
import { ref } from 'vue'
/// 是否显示引导页
import emitter from '@utils/emitter'
// 是否显示引导页
const guide = ref(true)
/// 选择的历史会话ID
// 选择的历史会话ID
const selectedConversationId = ref('')
// 任务操作弹窗引用
const taskOperationDialogRef = ref()
/// 处理新对话事件切换到引导页并清空选中的历史会话ID
const handleNewChat = () => {
@@ -32,4 +39,8 @@ const handleSelectChat = (conversationId: string) => {
selectedConversationId.value = conversationId;
};
// 监听任务操作弹窗关闭事件
emitter.on('OPERATION_CHANNEL', (item) => {
taskOperationDialogRef.value?.open(item);
});
</script>