Skip to content

Commit

Permalink
Fix Redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Oct 7, 2024
1 parent 0c50338 commit 80e5036
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions api/web/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -208,16 +208,12 @@ export default defineComponent({
this.err = e.reason;
});
if (status === 'empty') {
if (status === 'unconfigured') {
delete localStorage.token;
this.$router.push("/configure");
} else {
if (localStorage.token) {
await this.refreshLogin();
if (status === 'unconfigured') {
this.$router.push('/admin');
}
} else if (this.$route.name !== 'login') {
this.routeLogin();
}
Expand Down

0 comments on commit 80e5036

Please sign in to comment.