Login Finished, add curricula and apps
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user