From 61c336b7032bd45a5ce6f314a44192a77a85f706 Mon Sep 17 00:00:00 2001 From: Falknat Date: Mon, 12 Jan 2026 04:03:44 +0700 Subject: [PATCH] =?UTF-8?q?FRONT=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Правки фронта --- front_vue/src/api.js | 11 ++++++++++- front_vue/src/components/Board.vue | 4 ++-- front_vue/src/components/Card.vue | 5 +++-- front_vue/src/components/TaskPanel.vue | 16 +++------------- front_vue/src/views/TeamPage.vue | 4 ++-- 5 files changed, 20 insertions(+), 20 deletions(-) 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 @@
avatar @@ -53,6 +53,7 @@ diff --git a/front_vue/src/components/TaskPanel.vue b/front_vue/src/components/TaskPanel.vue index a54e009..ce5ffa5 100644 --- a/front_vue/src/components/TaskPanel.vue +++ b/front_vue/src/components/TaskPanel.vue @@ -91,7 +91,7 @@