modified: public/script.js
This commit is contained in:
parent
351eefc567
commit
f693b62f41
@ -57,7 +57,6 @@ $(document).ready(function() {
|
|||||||
data: JSON.stringify({ username, password }),
|
data: JSON.stringify({ username, password }),
|
||||||
success: function(response) {
|
success: function(response) {
|
||||||
if (response.success) {
|
if (response.success) {
|
||||||
alert('登录成功');
|
|
||||||
window.location.href = '/main.html';
|
window.location.href = '/main.html';
|
||||||
} else {
|
} else {
|
||||||
alert(response.message);
|
alert(response.message);
|
||||||
|
Loading…
Reference in New Issue
Block a user