From 1262cb504f48be36421df1c2019e59cc29071e1e Mon Sep 17 00:00:00 2001 From: Morten Delenk Date: Sat, 27 Aug 2022 19:21:03 +0100 Subject: [PATCH] fix the route --- map-desktop/src/views/LoadingView.vue | 4 ++-- map-desktop/src/views/MapView.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/map-desktop/src/views/LoadingView.vue b/map-desktop/src/views/LoadingView.vue index 673b7a8..91903ea 100644 --- a/map-desktop/src/views/LoadingView.vue +++ b/map-desktop/src/views/LoadingView.vue @@ -21,8 +21,8 @@ export default defineComponent({ mounted() { window.localStorage.getItem('token') - ? this.$router.push('/map') - : this.$router.push('/login'); + ? this.$router.push('/web/map') + : this.$router.push('/web/login'); } }); diff --git a/map-desktop/src/views/MapView.vue b/map-desktop/src/views/MapView.vue index eb087bd..2fc864d 100644 --- a/map-desktop/src/views/MapView.vue +++ b/map-desktop/src/views/MapView.vue @@ -31,7 +31,7 @@ export default { console.log(JSON.stringify(this.geojson)); } catch (e) { if(e.message === "Unauthorized") { - this.$router.push("/login"); + this.$router.push("/web/login"); } throw e; }