panhui 5 лет назад
Родитель
Сommit
2f9dc8a7d5
1 измененных файлов с 3 добавлено и 0 удалено
  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
             .dispatch('checkOrganization')
             .then(() => {
+                if (to.path === '/dashboard' && store.state.isORGANIZER) {
+                    next('/organizationInfo');
+                }
                 next();
             })
             .catch(() => {