diff --git a/static/app.js b/static/app.js index 6495219..0ac49fc 100644 --- a/static/app.js +++ b/static/app.js @@ -240,7 +240,7 @@ function showTaskModal(projectId) { ${phases.map((phase) => { const pt = tasks.filter((t) => t.phase === phase); - return `
${phase}${pt.length}
${pt.length ? pt.map((t) => `
${t.task}${t.owner ? `${t.owner}` : ""}${t.due_date ? `${t.due_date}` : ""}
`).join("") : `
暂无任务
`}
`; + return `
${phase}${pt.length}
${pt.length ? pt.map((t) => `
${t.task}${(t.owner || t.due_date) ? `${t.owner || ""}${t.owner && t.due_date ? " · " : ""}${t.due_date || ""}` : ""}
`).join("") : `
暂无任务
`}
`; }).join("")}`; document.querySelector("#taskModal").classList.add("active"); if (window.lucide) window.lucide.createIcons();