fixes
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<!-- Контентная часть заполняет оставшееся пространство -->
|
<!-- Контентная часть заполняет оставшееся пространство -->
|
||||||
<div class="flex-grow ">
|
<div class="flex-grow ">
|
||||||
{{ tg_id }}
|
<!-- {{ tg_id }}-->
|
||||||
<Button label="Sub" :class="checkNotif ? 'flex' : '!hidden'" @click="checkSubscribe"/>
|
<Button label="Sub" :class="checkNotif ? 'flex' : '!hidden'" @click="checkSubscribe"/>
|
||||||
<router-view/>
|
<router-view/>
|
||||||
</div>
|
</div>
|
||||||
@@ -26,7 +26,7 @@ import apiClient from '@/services/axiosSetup';
|
|||||||
|
|
||||||
const checkNotif = computed(() => {
|
const checkNotif = computed(() => {
|
||||||
|
|
||||||
return !!tg_id.value && 'Notification' in window && Notification.permission === 'default'
|
return !tg_id.value && 'Notification' in window && Notification.permission === 'default'
|
||||||
})
|
})
|
||||||
|
|
||||||
const tg_id = computed(() => {
|
const tg_id = computed(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user