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