1
0
forked from PGL/Clyde

Login Finished, add curricula and apps

This commit is contained in:
2024-03-17 13:24:24 +01:00
parent 5a7934b2a3
commit b67b25b4a4
7 changed files with 51 additions and 16 deletions

View File

@ -5,6 +5,22 @@
import { isLogged } from '@/rest/Users.js'
import { appList, currentView } from '@/rest/apps.js'
var prevURL;
var currentURL = window.location.hash;
window.onhashchange = function() {
prevURL = currentURL;
currentURL = window.location.hash;
}
console.log(location)
window.addEventListener('hashchange', () => {
console.log(prevURL)
console.log(location.hash)
console.log(isLogged())
if(location.hash === "#/home" && prevURL === "#/login"){
window.location.reload();
}
})
const home=ref(i18n("app.home"))
const notifications=ref(i18n("app.notifications"))
@ -66,7 +82,7 @@
<div class="leftBar">
<ul class="vertical">
<li v-for="app in apps">
<a href="app.path">
<a :href="app.path">
<div class="fa-solid" :class="app.icon" style="font-size: 40px;"></div>
<div class="text">{{app.text}}</div>
</a>