Skip to content

Commit

Permalink
[server-down] fix invalid redirection
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoPennec committed Sep 25, 2023
1 parent 70ad26f commit 8c4f5a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
7 changes: 2 additions & 5 deletions src/components/pages/ServerDown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,18 @@
</template>

<script>
import { mapGetters, mapActions } from 'vuex'
import { mapGetters } from 'vuex'
import auth from '@/lib/auth'
export default {
name: 'server-down',
computed: {
...mapGetters(['isAuthenticated', 'user'])
},
methods: {
...mapActions([])
},
mounted() {
auth.isServerLoggedIn(err => {
const target = this.$store.state.route.query.redirect
if (!err) {
const target = this.$store.state.route.query.redirect || '/'
this.$router.push(target)
}
})
Expand Down
13 changes: 1 addition & 12 deletions src/components/pages/WrongBrowser.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,7 @@
</template>

<script>
import { mapGetters, mapActions } from 'vuex'
export default {
name: 'server-down',
computed: {
...mapGetters([])
},
methods: {
...mapActions([])
},
mounted() {}
name: 'wrong-browser'
}
</script>

<style lang="scss" scoped></style>

0 comments on commit 8c4f5a3

Please sign in to comment.