diff --git a/web/src/app/(main)/function/tasks/page.tsx b/web/src/app/(main)/function/tasks/page.tsx index 90fbcd0..47edca7 100644 --- a/web/src/app/(main)/function/tasks/page.tsx +++ b/web/src/app/(main)/function/tasks/page.tsx @@ -16,6 +16,17 @@ import { } from "lucide-react"; import { StatusBadge } from "@/components/status-badge"; +import { + AlertDialog, + AlertDialogAction, + AlertDialogCancel, + AlertDialogContent, + AlertDialogDescription, + AlertDialogFooter, + AlertDialogHeader, + AlertDialogTitle, + AlertDialogTrigger, +} from "@/components/ui/alert-dialog"; import { Button } from "@/components/ui/button"; import { Card, CardContent } from "@/components/ui/card"; import { Checkbox } from "@/components/ui/checkbox"; @@ -542,14 +553,30 @@ export default function TasksPage() { 进入 - + + + + + + + 确认删除任务 #{task.id}? + + {task.description + ? `「${task.description.length > 80 ? task.description.slice(0, 80) + "…" : task.description}」` + : "该任务"} + 的执行记录、会话与产物将被删除,此操作不可撤销(全局资产图保留)。 + + + + 取消 + deleteTask(task.id)}> + 删除 + + + +