wangguoyu 12 giờ trước cách đây
mục cha
commit
acbe946048
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  1. 0 6
      utils/request.js

+ 0 - 6
utils/request.js

@@ -54,9 +54,6 @@ const request = config => {
 					showConfirm('登录状态已过期,您可以继续留在该页面,或者重新登录?').then(res => {
 						if (res.confirm) {
 							const auth = cacheManager.get('auth')
-							if (auth) {
-								cacheManager.clearAll()
-							}
 							if (auth.type == 2 || auth.type == 5) {
 								uni.reLaunch({
 									url: '/pages/Login/index'
@@ -74,9 +71,6 @@ const request = config => {
 					showConfirm('登录状态已过期,您可以继续留在该页面,或者重新登录?').then(res => {
 						if (res.confirm) {
 							const auth = cacheManager.get('auth')
-							if (auth) {
-								cacheManager.clearAll()
-							}
 							if (auth.type == 2 || auth.type == 5) {
 								uni.reLaunch({
 									url: '/pages/Login/index'