diff --git a/pages/welcome-page/welcome-page.vue b/pages/welcome-page/welcome-page.vue index 82d8186..97b0768 100644 --- a/pages/welcome-page/welcome-page.vue +++ b/pages/welcome-page/welcome-page.vue @@ -43,7 +43,7 @@ } this.$requst.post('user/login',params).then(res => { uni.hideToast(); - if(res.code==0){ + if(res.data.token!=''){ let dataObj = res.data; uni.setStorageSync('token',dataObj.token); this.$toolAll.tools.showToast('登录成功');