Comparing version 1.2.8 to 1.2.9
27
index.js
@@ -34,3 +34,2 @@ /*! | ||
i18n, | ||
dashboard, | ||
downloadUrl, | ||
@@ -68,3 +67,2 @@ readFileUrl, | ||
this.i18n = i18n | ||
this.dashboard = dashboard | ||
this.apiUrl = this.env.VITE_API_URL | ||
@@ -271,26 +269,3 @@ this.downloadUrl = downloadUrl | ||
: this.i18n.global.t("titles." + lowerCase(this.title)) | ||
/** | ||
* Check and refresh authenticated user with last permissions | ||
* after each navigation | ||
*/ | ||
let user = await this.store.dispatch("auth/checkAuth") | ||
/** | ||
* If logged | ||
*/ | ||
if (user) { | ||
/** | ||
* Redirect to dashboard route by default if public or root path | ||
*/ | ||
if (to.path === "/" || !to.meta.authenticated) { | ||
return next({ name: this.dashboard }) | ||
} | ||
return next() | ||
} | ||
/** | ||
* Force redirect to login if not logged for authenticated routes | ||
*/ | ||
// if (to.meta.authenticated) { | ||
// return next({ name: "login" }) | ||
// } | ||
next() | ||
next(); | ||
}) | ||
@@ -297,0 +272,0 @@ const l = new LicenseChecker(this.i18n, this.env); |
{ | ||
"name": "olobase", | ||
"version": "1.2.8", | ||
"version": "1.2.9", | ||
"description": "Create fast and easy admin panel apps with Vue and Php technologies", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
39024
505