mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-10 19:39:10 +00:00
Settings Created lifehook was incorrectly under methods
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section class="not-found" v-if="!userLoggedIn">
|
<section class="not-found" v-else>
|
||||||
<div class="not-found__content">
|
<div class="not-found__content">
|
||||||
<h2 class="not-found__title">Authentication Request Failed</h2>
|
<h2 class="not-found__title">Authentication Request Failed</h2>
|
||||||
<router-link :to="{name: 'signin'}" exact title="Sign in here">
|
<router-link :to="{name: 'signin'}" exact title="Sign in here">
|
||||||
@@ -79,15 +79,13 @@ export default {
|
|||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
console.log('error: ', error)
|
console.log('error: ', error)
|
||||||
})
|
})
|
||||||
},
|
}
|
||||||
created(){
|
},
|
||||||
document.title = 'Settings' + storage.pageTitlePostfix;
|
created(){
|
||||||
storage.backTitle = document.title;
|
document.title = 'Settings' + storage.pageTitlePostfix;
|
||||||
if(!localStorage.getItem('token')){
|
storage.backTitle = document.title;
|
||||||
this.userLoggedIn = false;
|
if (localStorage.getItem('token')){
|
||||||
} else {
|
this.userLoggedIn = true
|
||||||
this.userLoggedIn = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user