diff --git a/front_vue/src/api.js b/front_vue/src/api.js index fad73e5..1a6100e 100644 --- a/front_vue/src/api.js +++ b/front_vue/src/api.js @@ -1,5 +1,14 @@ // Базовый URL API (берётся из внешнего config.js) -const API_BASE = window.APP_CONFIG?.API_BASE || 'http://localhost' +const API_BASE = window.APP_CONFIG?.API_BASE || '' + +// Формирование полного URL (добавляет домен к относительным путям) +export const getFullUrl = (url) => { + if (!url) return '' + if (url.startsWith('http://') || url.startsWith('https://') || url.startsWith('data:')) { + return url + } + return API_BASE + url +} // Базовая функция запроса const request = async (endpoint, options = {}) => { diff --git a/front_vue/src/components/Board.vue b/front_vue/src/components/Board.vue index b0a5491..f41dbcf 100644 --- a/front_vue/src/components/Board.vue +++ b/front_vue/src/components/Board.vue @@ -110,12 +110,12 @@ const filteredTotalTasks = computed(() => { }) const inProgressTasks = computed(() => { - const col = filteredColumns.value.find(c => c.id === 3) // В работе + const col = filteredColumns.value.find(c => c.id === 2) // В работе return col ? col.cards.length : 0 }) const completedTasks = computed(() => { - const col = filteredColumns.value.find(c => c.id === 5) // Готово + const col = filteredColumns.value.find(c => c.id === 4) // Готово return col ? col.cards.length : 0 }) diff --git a/front_vue/src/components/Card.vue b/front_vue/src/components/Card.vue index 01ae4bc..7639b42 100644 --- a/front_vue/src/components/Card.vue +++ b/front_vue/src/components/Card.vue @@ -25,7 +25,7 @@