diff --git a/src/components/LoginSystem.vue b/src/components/LoginSystem.vue index 24b4afbcd0a887a38ede8bfa2564ae333d9a6363..246a695e7ae36779c3837d68a0c6062a4629dfed 100644 --- a/src/components/LoginSystem.vue +++ b/src/components/LoginSystem.vue @@ -135,9 +135,8 @@ this.userLoggedInName = this.$root.sharedState.user.firstName + " " + this.$root.sharedState.user.lastName; } /** Show the observation list instead of welcome page if user is logged in */ - if(this.$root.sharedState.uuid) - { - this.$router.push("/"); + if(this.$root.sharedState.uuid) { + this.$router.push("/cropCategory"); } }, @@ -241,8 +240,8 @@ this.$refs.Sync.isSyncOnewayNeeded(loggedUser); this.$refs.Sync.syncTwoWayAtLogin(); localStorage.setItem(CommonUtil.CONST_STORAGE_UUID, uuid); - if (this.$router.currentRoute.path != "/") { - this.$router.push('/') + if (this.$router.currentRoute.path !== "/cropCategory") { + this.$router.push("/cropCategory"); } }