From c7210c6d80b07a6290eed8b5e5ef1498d499b9c6 Mon Sep 17 00:00:00 2001 From: zomborip Date: Sat, 25 Oct 2025 11:12:13 +0200 Subject: [PATCH] .env Title MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updatepli mostmár a page title a .env alapján a VITE_PAGE_TITLE --- .env | 1 + src/App.vue | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.env b/.env index fbbd110..8923395 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ VITE_BACKEND_API_HOST=http://localhost VITE_BACKEND_API_PORT=3000 +VITE_PAGE_TITLE=ALAP-Telefonkönyv \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 1570930..c9d2f98 100644 --- a/src/App.vue +++ b/src/App.vue @@ -291,6 +291,8 @@ const userAdmin = ref(false) const isLoading = ref(false) const menuSel = ref("Telefonkönyv") // Telefonkönyv, Admin, Kijelentkezés +document.title = import.meta.env.VITE_PAGE_TITLE || "Telefonkönyv?" + // --- Telefonkönyv állapot --- const contacts = ref([]) const isLoadingContacts = ref(false)