chanjunkai 5 年之前
父节点
当前提交
48d95f5831
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      templates/login.html

+ 7 - 2
templates/login.html

@@ -253,8 +253,13 @@
             $.get("/oa2/login", params, function (reUrl) {
                 //alert(reUrl);
                 let data = JSON.parse(reUrl)
-                console.log('request start')
-                window.location = data['res'];
+                if(data['code']===0){
+                    console.log('request start')
+                    window.location = data['res'];
+                }else{
+                    alert(data['msg'])
+                }
+
             });
         } else {
             alert("please input user and password");