feat: rooting corrected

This commit is contained in:
ALAMI Adnane 2025-04-23 10:05:27 +02:00
parent ca8c5d9209
commit 7fce831c75
3 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ onMounted(() => {
const roles = decoded.realm_access?.roles || [];
if (roles.includes("MyINPulse-admin")) {
router.push("/");
router.push("/admin");
} else if (roles.includes("MyINPulse-entrepreneur")) {
router.push("/leanCanva");
}

View File

@ -12,12 +12,12 @@ const router = createRouter({
component: () => import("../views/testComponent.vue"),
},
{
path: "/login",
path: "/",
name: "login",
component: () => import("../components/LoginComponent.vue"),
},
{
path: "/",
path: "/admin",
name: "Admin-main",
component: () => import("../views/AdminMain.vue"),
},

View File

@ -54,7 +54,7 @@ const useAuthStore = defineStore("storeAuth", {
async logout() {
try {
await keycloakService.CallLogout(
import.meta.env.VITE_APP_URL + "/login" //redirect to login page instead of test...
import.meta.env.VITE_APP_URL + "/" //redirect to login page instead of test...
);
await this.clearUserData();
} catch (error) {