Главноя теперь здоровается с пользователем

This commit is contained in:
FEARmeR 2023-05-20 19:06:31 +01:00
parent 3ec29b6788
commit 060d5a8b63

View File

@ -30,6 +30,8 @@ import vueMkHeader from "@/assets/img/space-background.jpg";
//authentification //authentification
const isAuthenticated = computed(() => !!sessionStorage.getItem('access_token')); const isAuthenticated = computed(() => !!sessionStorage.getItem('access_token'));
const userId = computed(() => sessionStorage.getItem('user_id'));
const loggedUserName = computed(() => sessionStorage.getItem('username'));
//hooks //hooks
const body = document.getElementsByTagName("body")[0]; const body = document.getElementsByTagName("body")[0];
@ -87,16 +89,23 @@ export default {
<div class="col-lg-7 text-center mx-auto position-relative"> <div class="col-lg-7 text-center mx-auto position-relative">
<h1 <h1
class="text-white pt-3 mt-n5 me-2" class="text-white pt-3 mt-n5 me-2"
:style="{ display: 'inline-block ' }" :style="{ display: 'inline-block ', fontFamily: 'PressStart2P, sans-serif' }"
> >
LinkedMin LinkedMin
</h1> </h1>
<p>
</p>
<div v-if="isAuthenticated"> <div v-if="isAuthenticated">
<h1 <h2
class="text-white pt-3 mt-n5 me-2" class="text-white pt-3 mt-n5 me-2"
:style="{ display: 'inline-block ', fontFamily: 'PressStart2P, sans-serif' }" :style="{ display: 'inline-block ', fontFamily: 'PressStart2P, sans-serif' }"
> >
Тариф Премиум</h1> Привет, {{ loggedUserName }}</h2>
</div> </div>
<div v-else> <div v-else>