|
@@ -50,6 +50,9 @@ const request = config => {
|
|
|
if (code === 401) {
|
|
|
showConfirm('登录状态已过期,您可以继续留在该页面,或者重新登录?').then(res => {
|
|
|
if (res.confirm) {
|
|
|
+ if(cacheManager.get(auth)){
|
|
|
+ cacheManager.clearAll()
|
|
|
+ }
|
|
|
uni.reLaunch({
|
|
|
url: '/pages/login/index'
|
|
|
})
|
|
@@ -59,6 +62,9 @@ const request = config => {
|
|
|
} else if (code === 405) {
|
|
|
showConfirm('登录状态已过期,您可以继续留在该页面,或者重新登录?').then(res => {
|
|
|
if (res.confirm) {
|
|
|
+ if(cacheManager.get(auth)){
|
|
|
+ cacheManager.clearAll()
|
|
|
+ }
|
|
|
uni.reLaunch({
|
|
|
url: '/pages/login/index'
|
|
|
})
|