master
parent
1d9bad150f
commit
c9ea834618
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue