auto-sync: 2026-05-20 13:22:52
This commit is contained in:
@@ -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}`, {
|
||||
|
||||
Reference in New Issue
Block a user