diff --git a/pages/login/login.vue b/pages/login/login.vue index f7abb98..1c70ffc 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -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 => {