Работает аутентификация, но в одной вкладке

This commit is contained in:
FEARmeR 2023-05-19 14:35:08 +01:00
parent 587bf159c5
commit 6f725217e2

View File

@ -14,7 +14,7 @@
</style>
<script setup>
import { onMounted, onUnmounted } from "vue";
import { onMounted, onUnmounted, computed, } from "vue";
//example components
import NavbarDefault from "../..//examples/navbars/NavbarDefault.vue";
@ -29,6 +29,9 @@ import PresentationSearch from "./Sections/PresentationSearch.vue";
//images
import vueMkHeader from "@/assets/img/space-background.jpg";
//authentification
const isAuthenticated = computed(() => !!sessionStorage.getItem('access_token'));
//hooks
const body = document.getElementsByTagName("body")[0];
onMounted(() => {
@ -86,6 +89,18 @@ export default {
>
LinkedMin
</h1>
<div v-if="isAuthenticated">
<h1
class="text-white pt-3 mt-n5 me-2"
:style="{ display: 'inline-block ', fontFamily: 'PressStart2P, sans-serif' }"
>
Тариф Премиум</h1>
</div>
<div v-else>
<p>Тариф Бесплатный</p>
</div>
<p class="lead text-white px-5 mt-3" :style="{ fontWeight: '500', fontFamily: 'PressStart2P, sans-serif' }">
Показывай себя и свои проекты.
Находи вдохновение, коллег и новые знания.