pull/57/head
parent
57737265b5
commit
60dc3db7aa
|
@ -54,6 +54,8 @@
|
|||
},
|
||||
methods:{
|
||||
login(){
|
||||
var store=this.$store.state
|
||||
|
||||
// "username": "xiaomeng",
|
||||
// "password": "lihe12345"
|
||||
if(!this.username){
|
||||
|
@ -86,6 +88,7 @@
|
|||
message: '登陆成功',
|
||||
type: "success",
|
||||
});
|
||||
store.equipmentIndex=1
|
||||
localStorage.setItem('token',res.data.data.token)
|
||||
localStorage.setItem('userInfo',JSON.stringify(res.data.data))
|
||||
this.$router.push({ name: 'index' })
|
||||
|
|
Loading…
Reference in New Issue