login
This commit is contained in:
@@ -158,7 +158,7 @@ export default {
|
|||||||
this.$store.dispatch('userInfo', JSON.stringify(obj))
|
this.$store.dispatch('userInfo', JSON.stringify(obj))
|
||||||
this.$store.dispatch('setLoginInfo', {username: this.username, password: this.password})
|
this.$store.dispatch('setLoginInfo', {username: this.username, password: this.password})
|
||||||
this.hide()
|
this.hide()
|
||||||
if (res.result.user.user.isAdmin) {
|
if (!res.result.user.user.isAdmin) {
|
||||||
this.$router.push('/mini/home')
|
this.$router.push('/mini/home')
|
||||||
} else {
|
} else {
|
||||||
this.$router.push('/index/home')
|
this.$router.push('/index/home')
|
||||||
|
|||||||
Reference in New Issue
Block a user