Browse Source

fix(utils/request): 代码结构修复

wangpx 1 year ago
parent
commit
030df77179
1 changed files with 3 additions and 4 deletions
  1. 3 4
      utils/request.js

+ 3 - 4
utils/request.js

@@ -18,10 +18,9 @@ const request = config => {
 			  showConfirm('登录状态已过期,您可以继续留在该页面,或者重新登录?').then(() => {
 				  uni.reLaunch({ url: '/pages/login' })
 				})
-				}
-			reject('无效的会话,或者会话已过期,请重新登录。')
-		}
-	}
+      }
+    reject('无效的会话,或者会话已过期,请重新登录。')
+  }
   // get请求映射params参数
   if (config.params) {
     let url = config.url + '?' + tansParams(config.params)