Browse Source

401数量控制

谢杰标 2 năm trước cách đây
mục cha
commit
096163d2df
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      common/request.js

+ 1 - 1
common/request.js

@@ -46,7 +46,7 @@ export const myRequest = (options) => {
           uni.hideLoading();
         }
         if (res.data.code == 401) {
-          if (num <= 2) {
+          if (num <= 10) {
             if (!uni.getStorageSync("user_account")) {
               var pages = getCurrentPages(); // 获取栈实例
               let currentRoute = pages[pages.length - 1].route; // 获取当前页面路由