pull/57/head
孙萌 2023-11-24 10:12:06 +08:00
parent 57737265b5
commit 60dc3db7aa
1 changed files with 3 additions and 0 deletions

View File

@ -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' })