feat: 删除不需要的TodoList组件

This commit is contained in:
肖应宇 2026-04-07 16:37:02 +08:00
parent eceeecf4b8
commit bf8f36756b
1 changed files with 4 additions and 3 deletions

View File

@ -20,7 +20,7 @@ import {
useArtifacts,
} from "@/components/workspace/artifacts";
import { useThreadChat } from "@/components/workspace/chats";
import { DevTodoList } from "@/components/workspace/dev-todo-list";
// import { DevTodoList } from "@/components/workspace/dev-todo-list";
import { InputBox } from "@/components/workspace/input-box";
import { MessageList } from "@/components/workspace/messages";
import { ThreadContext } from "@/components/workspace/messages/context";
@ -267,7 +267,8 @@ export default function ChatPage() {
)}
</div>
<div className="flex items-center justify-end gap-2 overflow-hidden">
<DevTodoList
{/* 取消TodoList */}
{/* <DevTodoList
className="bg-white"
todos={thread.values.todos ?? []}
hidden={
@ -282,7 +283,7 @@ export default function ChatPage() {
<ListTodoIcon className="size-4" /> To-dos
</Button>
}
/>
/> */}
{artifacts?.length > 0 && !artifactsOpen && (
<Tooltip content="点击可查看生成的文件结果">