zwzw1219 2017-10-15 17:41:07 +08:00
parent 1d9bad150f
commit c9ea834618
1 changed files with 4 additions and 5 deletions

View File

@ -38,10 +38,10 @@
parent.location.href = '/login.html';
}
/* var user = loginInfo();
var user = loginInfo();
if (user != "") {
location.href = '/';
} */
}
function login(obj) {
$(obj).attr("disabled", true);
@ -54,10 +54,9 @@
} else {
$.ajax({
type : 'post',
url : '/login',
url : '/sys/login',
data : $("#login-form").serialize(),
success : function(data) {
console.log(data)
success : function() {
location.href = '/';
},
error : function(xhr, textStatus, errorThrown) {