Browse Source

fix: 修复加载时的判断逻辑错误

修改了 Onload.js 中 else 分支的条件判断,确保仅在请求状态非0时执行页面刷新,避免不必要的重载操作
lsc 4 days ago
parent
commit
ef19fc439a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      szdjg/Onload.js

+ 1 - 1
szdjg/Onload.js

@@ -716,7 +716,7 @@ U.MD.D.getuser = function () {
         U.A.Request(US.Config.server + "getcookieuserid", [], function (res) {
         U.A.Request(US.Config.server + "getcookieuserid", [], function (res) {
             if (res.value && res.value[0] && res.value[0][0]) {
             if (res.value && res.value[0] && res.value[0][0]) {
                 isPanL = false
                 isPanL = false
-            }else {
+            }else if(res.status != 0){
                 window.onbeforeunload = null
                 window.onbeforeunload = null
                 window.location.reload();
                 window.location.reload();
             }
             }