From 5f0a5842efc5131e48b4abc9ab04b1a7768bc61e Mon Sep 17 00:00:00 2001 From: Lee <342694918@qq.com> Date: Wed, 7 Dec 2022 17:38:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/login/login.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 => {