[+] Check cookies on initt
This commit is contained in:
@@ -59,6 +59,16 @@ export default class App extends Vue
|
|||||||
{
|
{
|
||||||
// Show splash
|
// Show splash
|
||||||
console.log(Constants.SPLASH);
|
console.log(Constants.SPLASH);
|
||||||
|
|
||||||
|
// Check login cookies
|
||||||
|
if (this.$cookies.isKey('va.token'))
|
||||||
|
{
|
||||||
|
// Hide login
|
||||||
|
this.showLogin = false;
|
||||||
|
|
||||||
|
// Load data
|
||||||
|
this.loadAfterLogin();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user