diff --git a/gasStation-uni/pagesLogin/login/login.vue b/gasStation-uni/pagesLogin/login/login.vue index 2798baf5a..8d2bb642d 100644 --- a/gasStation-uni/pagesLogin/login/login.vue +++ b/gasStation-uni/pagesLogin/login/login.vue @@ -86,23 +86,10 @@ console.log('请求成功', rex) if (rex.data.code == 200) { - uni.setStorageSync('App-Token', rex.data.token); - if (this.returnUrl) { - uni.navigateBack() - } else { - this.userinfo() - console.log('跳转'); - } - } - if (rex.data.code == 500) { - uni.clearStorageSync(); - uni.showToast({ - icon: 'none', - title: rex.data.msg - }) - console.log('走错误请求'); - + uni.setStorageSync('App-Token', rex.data.data.token); + } + console.log("swq",uni.getStorageSync('App-Token')); }, fail: (res) => { console.log("fail", res);