Skip to content

Commit

Permalink
Merge pull request #7475 from GuoLiBin6/fix/glb-to-3.9/src
Browse files Browse the repository at this point in the history
fix: 已经注册过管理员之后,不再展示注册页面
  • Loading branch information
GuoLiBin6 authored Dec 26, 2024
2 parents 29cc0f3 + cb72ec8 commit e797578
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/layouts/Auth/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ export default {
await this.$store.dispatch('auth/getRegistersStatus')
if (!this.$store.state.auth.registersStatus) {
this.$router.replace('/auth/adminregister')
} else {
if (this.$route.path === '/auth/adminregister') {
this.$router.replace('/auth')
}
}
} catch (error) {
console.error(error)
Expand Down

0 comments on commit e797578

Please sign in to comment.