优化登录
parent
315c0ee66d
commit
5f0a5842ef
|
@ -188,9 +188,10 @@
|
|||
this.$requst.post('/api/v1/user/login',{code:code}).then(res => {
|
||||
if(res.code == 0){
|
||||
console.log(res,'进入登录信息');
|
||||
uni.setStorageSync('token',res.data.token) //缓存token
|
||||
if(res.data.is_active==1){
|
||||
this.isActive = true;
|
||||
}else{
|
||||
uni.setStorageSync('token',res.data.token) //缓存token
|
||||
}
|
||||
}
|
||||
},error => {
|
||||
|
|
Loading…
Reference in New Issue