mirror of
https://github.com/creativetimofficial/vue-material-kit.git
synced 2025-05-24 22:04:21 +08:00
Работает аутентификация, но в одной вкладке
This commit is contained in:
parent
587bf159c5
commit
6f725217e2
@ -14,7 +14,7 @@
|
|||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { onMounted, onUnmounted } from "vue";
|
import { onMounted, onUnmounted, computed, } from "vue";
|
||||||
|
|
||||||
//example components
|
//example components
|
||||||
import NavbarDefault from "../..//examples/navbars/NavbarDefault.vue";
|
import NavbarDefault from "../..//examples/navbars/NavbarDefault.vue";
|
||||||
@ -29,6 +29,9 @@ import PresentationSearch from "./Sections/PresentationSearch.vue";
|
|||||||
//images
|
//images
|
||||||
import vueMkHeader from "@/assets/img/space-background.jpg";
|
import vueMkHeader from "@/assets/img/space-background.jpg";
|
||||||
|
|
||||||
|
//authentification
|
||||||
|
const isAuthenticated = computed(() => !!sessionStorage.getItem('access_token'));
|
||||||
|
|
||||||
//hooks
|
//hooks
|
||||||
const body = document.getElementsByTagName("body")[0];
|
const body = document.getElementsByTagName("body")[0];
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@ -86,6 +89,18 @@ export default {
|
|||||||
>
|
>
|
||||||
LinkedMin
|
LinkedMin
|
||||||
</h1>
|
</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' }">
|
<p class="lead text-white px-5 mt-3" :style="{ fontWeight: '500', fontFamily: 'PressStart2P, sans-serif' }">
|
||||||
Показывай себя и свои проекты.
|
Показывай себя и свои проекты.
|
||||||
Находи вдохновение, коллег и новые знания.
|
Находи вдохновение, коллег и новые знания.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user