From 2fb4a8578cf258e1f4fcb5d46c839043401a1b6a Mon Sep 17 00:00:00 2001 From: wuzuowei Date: Thu, 18 Jul 2024 18:32:40 +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/microhost/system/runtimes/user.ts | 10 +++++----- platform-code/src/pages/tech/login/Senselesslogin.tsx | 8 ++++++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/platform-code/src/microhost/system/runtimes/user.ts b/platform-code/src/microhost/system/runtimes/user.ts index c4643b5..4e177b2 100644 --- a/platform-code/src/microhost/system/runtimes/user.ts +++ b/platform-code/src/microhost/system/runtimes/user.ts @@ -160,11 +160,11 @@ export default class RuntimeUser { , userData?.Name , userData?.OrganName) await MicroApps.GetRuntimeLogger().success(Log.Login, loginId) - let obj = { - OperateUser: loginId || "未登录", - Operate: `${loginId}登陆了工艺数据管理子系统` - } - await this.model.setlog(obj) + // let obj = { + // OperateUser: loginId || "未登录", + // Operate: `${loginId}登陆了工艺数据管理子系统` + // } + // await this.model.setlog(obj) return true } } diff --git a/platform-code/src/pages/tech/login/Senselesslogin.tsx b/platform-code/src/pages/tech/login/Senselesslogin.tsx index db4ff06..761244c 100644 --- a/platform-code/src/pages/tech/login/Senselesslogin.tsx +++ b/platform-code/src/pages/tech/login/Senselesslogin.tsx @@ -114,6 +114,14 @@ const TechLoginView = () => { history.push(`/animate?url=${encodeURIComponent(jumpTo)}`) + + + let obj = { + OperateUser: loginId || "未登录", + Operate: `${loginId}登陆了工艺数据管理子系统` + } + request.post('/Personnel/Personnelapi/LogRecording', obj) + if (pathValue == "notice") { sessionStorage.setItem("notice", encodeURIComponent(JSON.stringify(pathValue))) }