fix the route
This commit is contained in:
parent
5091eb337b
commit
1262cb504f
2 changed files with 3 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue