release v2.0.0 #4
|
@ -13,7 +13,7 @@ export default boot(({ router }) => {
|
||||||
// Secured area (LOGIN REQUIRED)
|
// Secured area (LOGIN REQUIRED)
|
||||||
// Check login is ok
|
// Check login is ok
|
||||||
if (!store.session || store.session.expires <= new Date()) {
|
if (!store.session || store.session.expires <= new Date()) {
|
||||||
void store.logout();
|
void store.handleLoggedOut();
|
||||||
return next({ name: 'login', query: { redirect: to.fullPath } });
|
return next({ name: 'login', query: { redirect: to.fullPath } });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,8 @@ const config: { [key: string]: Array<string> } = {
|
||||||
// Do not change required Modules !!
|
// Do not change required Modules !!
|
||||||
requiredModules: ['User'],
|
requiredModules: ['User'],
|
||||||
// here you can import plugins.
|
// here you can import plugins.
|
||||||
//loadModules: ['Balance', 'Schedule', 'Pricelist'],
|
loadModules: ['Balance', 'Schedule', 'Pricelist'],
|
||||||
loadModules: [],
|
//loadModules: [],
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Stop!
|
/* Stop!
|
||||||
|
|
Loading…
Reference in New Issue