修改登录
diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html
index 81e8471..0cef69e 100644
--- a/src/main/resources/templates/login.html
+++ b/src/main/resources/templates/login.html
@@ -97,6 +97,7 @@
data: field,
type: 'POST',
success: function (data) {
+ console.log(data);
if (200 == data.code) {
layer.msg('登录成功', {icon: 1, time: 1500}, function () {
location.replace('./');
@@ -108,10 +109,9 @@
}
},
error: function (xhr) {
- console.log('error');
console.log(xhr);
layer.closeAll('loading');
- layer.msg('登录失败,请按f12查看console错误信息', {icon: 5});
+ layer.msg('登录失败', {icon: 5});
}
});
});