From 11a6dde1ea7e0dae751ef1d383dcf8a14a334a52 Mon Sep 17 00:00:00 2001
From: yyk <2336760928@qq.com>
Date: 星期五, 23 八月 2024 09:21:24 +0800
Subject: [PATCH] Merge branch 'master' of http://47.95.120.53:8083/r/JC26WMS

---
 HTML/views/Login.html |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/HTML/views/Login.html b/HTML/views/Login.html
index 2e3b700..b3dddba 100644
--- a/HTML/views/Login.html
+++ b/HTML/views/Login.html
@@ -112,8 +112,8 @@
 			};
 			sendData(IP + "/WeatherForecast/Login", param, 'post', function (res) {
 				console.log(res);
-				if (res.code == 200) { //鎴愬姛
-					$.cookie('token', res.ToKen.TokenStr);
+				if (res.code == 0) { //鎴愬姛
+					$.cookie('token', res.data);
 					layer.msg("鐧诲綍鎴愬姛", {
 						icon: 1,
 						time: 1200 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
@@ -131,7 +131,7 @@
 					
 					
 				} else { //涓嶆垚鍔�
-					layer.msg(res.ErrorMsg, {
+					layer.msg(res.msg, {
 						icon: 2,
 						time: 1200 //2绉掑叧闂紙濡傛灉涓嶉厤缃紝榛樿鏄�3绉掞級
 					}, function () {

--
Gitblit v1.8.0