panhui hace 5 años
padre
commit
2f9dc8a7d5
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/main/vue/src/router.js

+ 3 - 0
src/main/vue/src/router.js

@@ -476,6 +476,9 @@ router.beforeEach((to, from, next) => {
         store
         store
             .dispatch('checkOrganization')
             .dispatch('checkOrganization')
             .then(() => {
             .then(() => {
+                if (to.path === '/dashboard' && store.state.isORGANIZER) {
+                    next('/organizationInfo');
+                }
                 next();
                 next();
             })
             })
             .catch(() => {
             .catch(() => {