feat: rooting corrected
This commit is contained in:
parent
ca8c5d9209
commit
7fce831c75
@ -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");
|
||||
}
|
||||
|
@ -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"),
|
||||
},
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user