Explorar el Código

401数量控制

谢杰标 hace 2 años
padre
commit
096163d2df
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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; // 获取当前页面路由