Compare commits
No commits in common. "37ea2c24fd7dba39afa704f9bee0e3c275a51e42" and "b5c57c72ca496be583444002126cff5c9b771cf0" have entirely different histories.
37ea2c24fd
...
b5c57c72ca
|
|
@ -51,7 +51,6 @@ module.exports = vm => {
|
||||||
// 响应拦截
|
// 响应拦截
|
||||||
uni.$u.http.interceptors.response.use(
|
uni.$u.http.interceptors.response.use(
|
||||||
response => {
|
response => {
|
||||||
console.log(response, '......response')
|
|
||||||
const data = response.data
|
const data = response.data
|
||||||
// uni.$u.toast(data.msg)
|
// uni.$u.toast(data.msg)
|
||||||
// if (data.code == 200) {
|
// if (data.code == 200) {
|
||||||
|
|
@ -72,20 +71,6 @@ module.exports = vm => {
|
||||||
})
|
})
|
||||||
}, 1500)
|
}, 1500)
|
||||||
} else if (data.code == 500) {
|
} else if (data.code == 500) {
|
||||||
if (['/member/api/member/get-info'].includes(response?.config?.url)) {
|
|
||||||
uni.showToast({
|
|
||||||
title: '登录失败',
|
|
||||||
icon: 'none',
|
|
||||||
duration: 800,
|
|
||||||
})
|
|
||||||
setTimeout(() => {
|
|
||||||
uni.reLaunch({
|
|
||||||
url: '/pages/login/index',
|
|
||||||
})
|
|
||||||
}, 800)
|
|
||||||
removeToken()
|
|
||||||
return data
|
|
||||||
}
|
|
||||||
uni.$u.toast(data.msg)
|
uni.$u.toast(data.msg)
|
||||||
return data
|
return data
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue