From bc65c4362671b8dc89a482f7d57b90d9524d575f Mon Sep 17 00:00:00 2001 From: wuzuowei Date: Thu, 18 Jul 2024 17:27:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=99=BB=E5=BD=95=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform-code/src/pages/tech/login/Senselesslogin.tsx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/platform-code/src/pages/tech/login/Senselesslogin.tsx b/platform-code/src/pages/tech/login/Senselesslogin.tsx index 844d463..8103c32 100644 --- a/platform-code/src/pages/tech/login/Senselesslogin.tsx +++ b/platform-code/src/pages/tech/login/Senselesslogin.tsx @@ -25,7 +25,9 @@ const TechLoginView = () => { current(paramValue); }, []) - + const getLog = async (obj: any) => { + await request.post('/Personnel/Personnelapi/LogRecording', obj) + } const current = (date: string) => { // console.log("date", date) @@ -44,12 +46,17 @@ const TechLoginView = () => { if (data.loginName != undefined) { //拿到账号密码之后进行登录 - // console.log(data); + console.log(data); let month = new Date().getTime() + 1000 * 24 * 3600 * 30 * 3 utils.saveCookie('CZtoken', paramValue, month) utils.saveCookie('loginName', data.loginName, month) doLogin(data.loginName); + let obj = { + OperateUser: data.loginName || "未登录", + Operate: `${data.loginName}登陆了工艺数据管理子系统` + } + getLog(obj) } else { message.error('获取财智系统用户信息报错!');