fix: kanban worker log URL double query param on non-default boards

This commit is contained in:
tn801534
2026-05-24 20:37:33 +08:00
committed by nesquena-hermes
parent 66de2367a9
commit 2e876ea229
+1 -2
View File
@@ -2388,8 +2388,7 @@ async function loadKanbanTask(taskId){
if (!taskId) return;
try {
const data = await api('/api/kanban/tasks/' + encodeURIComponent(taskId) + _kanbanBoardQuery());
const logEndpoint = '/api/kanban/tasks/' + encodeURIComponent(taskId) + '/log' + _kanbanBoardQuery();
try { data.log = await api(logEndpoint + '?tail=65536'); } catch(e) { data.log = {}; }
try { data.log = await api('/api/kanban/tasks/' + encodeURIComponent(taskId) + '/log' + _kanbanBoardQuery({tail: 65536})); } catch(e) { data.log = {}; }
_kanbanCurrentTaskId = taskId;
const task = data.task || {};
const title = _kanbanTaskTitle(task);