|
@@ -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");
|