From 35ee06c0bf6e025cb818609c2ec218e79bdf7002 Mon Sep 17 00:00:00 2001 From: 107 <107@DESKTOP-UP8U7M2> Date: Fri, 23 May 2025 13:58:41 +0700 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=B3=D0=BE=D1=80?= =?UTF-8?q?=D0=BE=D0=B4=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ProfileView.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/ProfileView.vue b/src/views/ProfileView.vue index 9c677e4..f4a9450 100644 --- a/src/views/ProfileView.vue +++ b/src/views/ProfileView.vue @@ -785,9 +785,9 @@ const loadCities = async () => { if (cities.length > 0) return; try { - const response = await fetch('/src/assets/russian-cities.json'); - const data = await response.json(); - cities = data; + // Используем правильный путь к файлу для Vite + const response = await import('@/assets/russian-cities.json'); + cities = response.default || []; console.log('[ProfileView] Загружен список городов:', cities.length); } catch (err) { console.error('[ProfileView] Ошибка при загрузке списка городов:', err);