mirror of
https://github.com/lan-tianxiang/JS_TOOL.git
synced 2026-03-24 19:07:41 +08:00
更新于 07-06 01:42
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
$.ajaxSetup({
|
||||
cache: false
|
||||
});
|
||||
|
||||
$("#login").click(function () {
|
||||
$user = $(".username").val();
|
||||
$password = $(".password").val();
|
||||
if (!$user || !$password) return;
|
||||
|
||||
$.post('./login', {
|
||||
username: $user,
|
||||
password: $password
|
||||
}, function (data) {
|
||||
if (data.err == 0) {
|
||||
window.location.href = "./usrconfig";
|
||||
} else {
|
||||
Swal.fire({
|
||||
text: data.msg,
|
||||
icon: 'error'
|
||||
})
|
||||
}
|
||||
});
|
||||
return false;
|
||||
});
|
||||
Reference in New Issue
Block a user