浏览代码

Added QIngkongshuju

jason.lu 6 年之前
父节点
当前提交
c34bd9a26b
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      sign-in1.html

+ 2 - 2
sign-in1.html

@@ -117,9 +117,9 @@
             send_alert("用户名密码错误");
         }else{
             // TODO: 判断是否存在flowMaster,是否有权限
-            setCookieWithTimeout("doibyUser", obj.list[0].userId);
+            setCookieWithTimeout("doibyUser", obj.userId);
             alert("Cookie : " + getCookie("doibyUser"));
-            location.href = "denglu.html?userId=" + obj.list[0].userId;
+            location.href = "denglu.html?userId=" + obj.userId;
         }
     }