Houjie
2025-07-07 0a48655d2162b709ecb80d249a4085971add6140
common/service/service.js
@@ -97,6 +97,7 @@
         case 504:
            break
         case 401:
            uni.removeStorageSync(ACCESS_TOKEN); // 清除 token
            uni.showModal({
               title: '提示',
               content: '登录超时,需要重新登录!',
@@ -104,12 +105,27 @@
               success: (res) => {
                  if (res.confirm) {
                     uni.reLaunch({
                        url: '/pages/login/login'
                     })
                        url: '/pages/login/loginOauth2'
                     });
                  }
               }
            });
            break
            break;
         // case 401:
         //    uni.showModal({
         //       title: '提示',
         //       content: '登录超时,需要重新登录!',
         //       showCancel: false,
         //       success: (res) => {
         //          if (res.confirm) {
         //             uni.reLaunch({
         //                url: '/pages/login/login'
         //             })
         //          }
         //       }
         //    });
         //    break
         default:
            tip.error({
               duration: 0,