接口
This commit is contained in:
@@ -150,7 +150,7 @@ export default {
|
||||
async loginApi () {
|
||||
try {
|
||||
let res = await handLogin(this.loginname, encrypt(this.password))
|
||||
this.$store.dispatch('setUserInfo', JSON.stringify(res.user.user))
|
||||
this.$store.dispatch('saveUserInfo', JSON.stringify(res.user.user))
|
||||
this.$store.dispatch('saveToken', res.token)
|
||||
this.$router.push('/home')
|
||||
this.disabled = false
|
||||
|
||||
Reference in New Issue
Block a user