1
This commit is contained in:
commit
8c95bbf909
126 files changed
+16922
No files matched your search
@@ -0,0 +1,44 @@
|
||||
<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>
|
||||
Reference in new issue
Block a user