auto-sync: 2026-05-20 13:22:52

This commit is contained in:
cfdaily
2026-05-20 13:22:52 +08:00
parent cdde2f3c18
commit c010c4ff03
+3 -3
View File
@@ -301,9 +301,9 @@ export default function EdictBoard() {
}, [selectedProjectId]);
// ── 卡片动作处理 ──
const handleCardAction = async (taskId: string, action: string) => {
const pid = selectedProjectId;
if (!pid) return;
const handleCardAction = async (taskId: string, action: string, taskPid?: string) => {
const pid = taskPid || (selectedProjectId && !selectedProjectId.startsWith('__') ? selectedProjectId : null);
if (!pid) { toast('请先选择具体项目', 'err'); return; }
try {
if (action === 'archive') {
const res = await fetch(`/api/projects/${pid}/tasks/${taskId}`, {