From d457a9e04dbe9aca10761712ab6820d0efa7c97e Mon Sep 17 00:00:00 2001 From: Andrey Date: Mon, 17 Mar 2025 15:16:42 +0300 Subject: [PATCH] COMMENT --- pages/qr.vue | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pages/qr.vue b/pages/qr.vue index 908dcbd..c438f34 100644 --- a/pages/qr.vue +++ b/pages/qr.vue @@ -1,6 +1,6 @@ @@ -12,10 +12,13 @@ export default { name: 'QRPage', data() { return { - qrText: 'http://192.168.88.153:8106/', + qrText: '', // Текст или ссылка для QR-кода }; }, mounted() { + // Добавляем "https://", если его нет в URL + const currentUrl = window.location.href; + this.qrText = currentUrl.startsWith('http') ? currentUrl : `https://${currentUrl}`; this.generateQR(); }, methods: { @@ -43,12 +46,11 @@ export default { } .qr-title { - font-family: 'Arial', sans-serif; /* Шрифт */ - font-size: 2.5rem; /* Размер текста */ - color: #333; /* Цвет текста */ - font-weight: bold; /* Жирный текст */ - text-transform: uppercase; /* Все буквы заглавные */ - margin-bottom: 0px; /* Отступ снизу */ + font-family: 'Arial', sans-serif; + font-size: 2rem; + color: #333; + font-weight: bold; + margin-bottom: 20px; } .qr-code {