diff --git a/src/router/index.js b/src/router/index.js index 1197d6e..c9811df 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -103,7 +103,7 @@ const routes = [ ]; const router = createRouter({ - history: createWebHistory(import.meta.env.BASE_URL), + history: createWebHistory('/'), routes, }); diff --git a/vite.config.js b/vite.config.js index 64d494c..a134c8c 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,6 +5,8 @@ import { resolve } from 'path' // Добавляем импорт модуля p export default defineConfig({ + // Базовый путь для всех относительных URL + base: '/', plugins: [ vue(), VitePWA({