Files
PORTAL_COD2/front/src/App.vue
T
2023-09-18 16:45:39 +03:00

48 lines
827 B
Vue

<template>
<router-view />
</template>
<script setup >
import VueJwtDecode from 'vue-jwt-decode'
import {useAccountStore} from '@/store/AccountStore'
const accountStore = useAccountStore()
const checkuser = ()=>{
const token = localStorage.getItem("refresh")
if(token){
const u = VueJwtDecode.decode(token)
accountStore.setUser(u.user)
}
}
checkuser()
</script>
<style>
::-webkit-scrollbar {
width: 1px;
height: 6px;
}
/* Track */
::-webkit-scrollbar-track {
-webkit-border-radius: 6px;
border-radius: 6px;
}
/* Handle */
::-webkit-scrollbar-thumb {
-webkit-border-radius: 6px;
border-radius: 6px;
background: rgb(var(--v-theme-scrollbar))
}
::-webkit-scrollbar-thumb:window-inactive {
background: rgb(var(--v-theme-scrollbar))
}
</style>