优化登录

master
Lee 2022-12-07 17:38:33 +08:00
parent 315c0ee66d
commit 5f0a5842ef
1 changed files with 2 additions and 1 deletions

View File

@ -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 => {