add meta title, description
Main daploy / deploy (push) Failing after 7s

This commit is contained in:
2024-12-02 09:21:31 +02:00
parent 1231dc26ce
commit bc20470341
8 changed files with 64 additions and 5 deletions
@@ -1,4 +1,12 @@
<template>
<MetaHead>
<title>Чат {{ chatDoc?.name ? `«${chatDoc.name}»` : '' }} НаСвязи</title>
<meta
name="description"
content="Ваш QR-код успешно создан! Узнайте, как его использовать и настройте все доступные функции для удобного взаимодействия с окружающими."
/>
</MetaHead>
<div class="flex flex-col min-h-full">
<!-- Основной контент -->
<main class="flex-grow flex flex-col">
@@ -47,5 +55,16 @@
<script setup lang="ts">
import type { MessageDocument } from '@hereconnect/types'
import ChatComponent from '@/components/ChatComponent.vue'
defineProps<{ qr_code_uri: MessageDocument['qr_code_uri']; chat: MessageDocument['chat'] }>()
import { getQrCodeDocument } from '@/api/qrCode'
import { useQuery } from '@tanstack/vue-query'
const props = defineProps<{
qr_code_uri: MessageDocument['qr_code_uri']
chat: MessageDocument['chat']
}>()
const { data: chatDoc } = useQuery({
queryKey: ['qrCode', computed(() => props.qr_code_uri)],
queryFn: () => getQrCodeDocument(props.qr_code_uri),
})
</script>