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