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