|
|
@ -132,19 +132,21 @@ service.interceptors.response.use(res => { |
|
|
|
console.log('过期了吗', res) |
|
|
|
uni.hideLoading() |
|
|
|
res=res.data; |
|
|
|
console.log('11111', res) |
|
|
|
// console.log(res)
|
|
|
|
// console.log(res.data)
|
|
|
|
// console.log(res.data.data[0].nameAlias)
|
|
|
|
if (res.data.success || res.data.errCode === 'USER.0017') { |
|
|
|
// console.log(res.data.success)
|
|
|
|
return res.data |
|
|
|
if (res.success || res.errCode === 'USER.0017') { |
|
|
|
|
|
|
|
return res.data; |
|
|
|
} else { |
|
|
|
|
|
|
|
uni.showToast({ |
|
|
|
title: res.data.errMsg, |
|
|
|
title: res.errMsg, |
|
|
|
icon: 'none', |
|
|
|
duration: 1500 |
|
|
|
}) |
|
|
|
if (res.data.errCode === 'USER.0010') { |
|
|
|
if (res.errCode === 'USER.0010') { |
|
|
|
|
|
|
|
uni.removeStorage({ |
|
|
|
key: 'logInfo', |
|
|
@ -175,7 +177,7 @@ service.interceptors.response.use(res => { |
|
|
|
|
|
|
|
} |
|
|
|
uni.$emit('refreshQrCode') |
|
|
|
return Promise.reject(res.data.errMsg); |
|
|
|
return Promise.reject(res.errMsg); |
|
|
|
} |
|
|
|
}, error => { |
|
|
|
uni.hideLoading(); |
|
|
|