From 29d3f24dc43df41103bc5f483bfc439494a80971 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期三, 17 十二月 2025 09:30:32 +0800
Subject: [PATCH] 对接mes 对接华晓agv 对接海康agv 初始化开发
---
src/main/webapp/views/login.html | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/main/webapp/views/login.html b/src/main/webapp/views/login.html
index 23f1ef0..ca0a611 100644
--- a/src/main/webapp/views/login.html
+++ b/src/main/webapp/views/login.html
@@ -134,12 +134,14 @@
}
let params = {username: username, password: hex_md5(password)}
$.ajax({
- url: baseUrl + "/login.action",
- headers: {'Content-Type': 'application/json'},
- data: JSON.stringify(params),
+ url: baseUrl+"/login.action",
+ data: {
+ username: username,
+ password: hex_md5(password)
+ },
method: 'POST',
success: function (res) {
- if (res.code === 200) {
+ if (res.code === 200){
localStorage.setItem("token", res.data.token);
localStorage.setItem("username", res.data.username);
window.location.href = "index.html";
@@ -149,9 +151,6 @@
layer.tips(res.msg, '#username', {tips: [4, '#ff0000']});
} else if (res.code === 10003) {
layer.tips(res.msg, '#password', {tips: [4, '#ff0000']});
- } else if (res.code == 20001) {
- layer.tips(res.msg, '.login-btn', {tips: [3, '#ff0000']});
- $("#updateLicense").show()
} else {
layer.tips(res.msg, '.login-btn', {tips: [3, '#ff0000']});
}
--
Gitblit v1.9.1