lsc 2 weeks ago
parent
commit
8e8d2ca8f8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      js/Desktop/Onload.js

+ 2 - 1
js/Desktop/Onload.js

@@ -499,7 +499,6 @@ U.MD.D.getuser = function () {
         fetch(url, requestOptions)
         .then(response => response.text())
         .then(result => {
-            U.UF.DL.uploading(document.body)
             // console.log(result)
             let data = JSON.parse(result).data
             // return
@@ -527,6 +526,7 @@ U.MD.D.getuser = function () {
                                 US.userInfo.userid = userId
                                 U.A.Request(US.Config.pbl + "selectUser?userid=" + userId, [], function (res) { //US.userInfo.userid
                                     loginSet(res.value[0][0], res)
+                                    U.UF.DL.uploading(document.body)
                                 }, [], { "type": "GET", "withCredentials": true });
                             }
                             
@@ -539,6 +539,7 @@ U.MD.D.getuser = function () {
                 }, [], { "type": "POST", "withCredentials": true })
             }else{
                 U.Alert("用户登录已失效,请重新获取登录信息!");
+                U.UF.DL.uploading(document.body)
             }
         })
         .catch(error => {