From 4707a846736dc53b4d55bd6641381b4d5334ca6d Mon Sep 17 00:00:00 2001 From: kgdxpr Date: Mon, 22 Jul 2024 09:44:45 +0800 Subject: [PATCH] 'commit' --- WebRoot/index.html | 4 +++- WebRoot/login.html | 18 ++++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/WebRoot/index.html b/WebRoot/index.html index b1c13a3d..b177c6e9 100644 --- a/WebRoot/index.html +++ b/WebRoot/index.html @@ -166,8 +166,10 @@ var loginPersonInfo = getPersonLoginInfo($); $("#personName").html(" " + loginPersonInfo.person_name); + var globalInfo = getGlobalInfo($, Base64.encode("system_name,copy_right")); - $('title').text(getGlobalInfo($, Base64.encode("title,copy_right"))); + + $('title').text(globalInfo.data[0].global_value); }); diff --git a/WebRoot/login.html b/WebRoot/login.html index 8e40289d..533e0543 100644 --- a/WebRoot/login.html +++ b/WebRoot/login.html @@ -19,6 +19,7 @@ + @@ -155,22 +156,23 @@ + getPageInfo(); //获取页面信息 function getPageInfo() { $.ajax({ - type: "POST", + type: "GET", dataType: "json", - url: "/baseService/global/getGlobalValueByKey", + url: "/QingLong/global/getGlobalByCodes", data: { - "key": "title,copy_right" + "global_codes": Base64.encode("title,copy_right") }, async: false, success: function (result) { - if (result.success) { - $("#system_name").html(result.title); - $("#copyright").html(result.copy_right); - $('title').html(result.title); - } + + // $("#system_name").html(result.title); + // $("#copyright").html(result.copy_right); + $('title').html(result.data[0].global_value); + } }); }