添加登录日志

master
wuzuowei 2 months ago
parent e5aa8e23ba
commit 8c494df62d

@ -111,9 +111,6 @@ const TechLoginView = () => {
jumpTo = "/" //routes[0].defaultPath && routes[0].defaultPath.length > 0 ? routes[0].defaultPath : "/welcome" jumpTo = "/" //routes[0].defaultPath && routes[0].defaultPath.length > 0 ? routes[0].defaultPath : "/welcome"
} }
} }
// history.push(`/animate?url=${encodeURIComponent(jumpTo)}`)
let obj = { let obj = {
OperateUser: loginId || "未登录", OperateUser: loginId || "未登录",
Operate: `${loginId}登陆了工艺数据管理子系统` Operate: `${loginId}登陆了工艺数据管理子系统`
@ -130,6 +127,9 @@ const TechLoginView = () => {
fetch('/Personnel/Personnelapi/LogRecording', options) fetch('/Personnel/Personnelapi/LogRecording', options)
history.push(`/animate?url=${encodeURIComponent(jumpTo)}`)
if (pathValue == "notice") { if (pathValue == "notice") {
sessionStorage.setItem("notice", encodeURIComponent(JSON.stringify(pathValue))) sessionStorage.setItem("notice", encodeURIComponent(JSON.stringify(pathValue)))
} }

@ -73,8 +73,6 @@ const TechLoginView = () => {
jumpTo = "/" //routes[0].defaultPath && routes[0].defaultPath.length > 0 ? routes[0].defaultPath : "/welcome" jumpTo = "/" //routes[0].defaultPath && routes[0].defaultPath.length > 0 ? routes[0].defaultPath : "/welcome"
} }
} }
// history.push(`/animate?url=${encodeURIComponent(jumpTo)}`)
let obj = { let obj = {
OperateUser: loginId || "未登录", OperateUser: loginId || "未登录",
Operate: `${loginId}登陆了工艺数据管理子系统` Operate: `${loginId}登陆了工艺数据管理子系统`
@ -90,6 +88,8 @@ const TechLoginView = () => {
fetch('/Personnel/Personnelapi/LogRecording', options) fetch('/Personnel/Personnelapi/LogRecording', options)
history.push(`/animate?url=${encodeURIComponent(jumpTo)}`)
} }
const isUrl = (addr: any) => { const isUrl = (addr: any) => {

Loading…
Cancel
Save