fix the route

This commit is contained in:
Morten Delenk 2022-08-27 19:21:03 +01:00
parent 5091eb337b
commit 1262cb504f
No known key found for this signature in database
GPG key ID: 5130416C797067B6
2 changed files with 3 additions and 3 deletions

View file

@ -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');
}
});
</script>

View file

@ -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;
}