This commit is contained in:
2025-01-09 10:28:00 +08:00
parent 6a6e819ee4
commit 556c1d4541

View File

@@ -158,7 +158,7 @@ export default {
this.$store.dispatch('userInfo', JSON.stringify(obj))
this.$store.dispatch('setLoginInfo', {username: this.username, password: this.password})
this.hide()
if (res.result.user.user.isAdmin) {
if (!res.result.user.user.isAdmin) {
this.$router.push('/mini/home')
} else {
this.$router.push('/index/home')