diff --git a/platform-code/src/pages/tech/login/Senselesslogin.tsx b/platform-code/src/pages/tech/login/Senselesslogin.tsx index f232606..6f82040 100644 --- a/platform-code/src/pages/tech/login/Senselesslogin.tsx +++ b/platform-code/src/pages/tech/login/Senselesslogin.tsx @@ -111,9 +111,6 @@ const TechLoginView = () => { jumpTo = "/" //routes[0].defaultPath && routes[0].defaultPath.length > 0 ? routes[0].defaultPath : "/welcome" } } - - - // history.push(`/animate?url=${encodeURIComponent(jumpTo)}`) let obj = { OperateUser: loginId || "未登录", Operate: `${loginId}登陆了工艺数据管理子系统` @@ -130,6 +127,9 @@ const TechLoginView = () => { fetch('/Personnel/Personnelapi/LogRecording', options) + history.push(`/animate?url=${encodeURIComponent(jumpTo)}`) + + if (pathValue == "notice") { sessionStorage.setItem("notice", encodeURIComponent(JSON.stringify(pathValue))) } diff --git a/platform-code/src/pages/tech/login/index.tsx b/platform-code/src/pages/tech/login/index.tsx index 94887fa..9989b23 100644 --- a/platform-code/src/pages/tech/login/index.tsx +++ b/platform-code/src/pages/tech/login/index.tsx @@ -73,8 +73,6 @@ const TechLoginView = () => { jumpTo = "/" //routes[0].defaultPath && routes[0].defaultPath.length > 0 ? routes[0].defaultPath : "/welcome" } } - - // history.push(`/animate?url=${encodeURIComponent(jumpTo)}`) let obj = { OperateUser: loginId || "未登录", Operate: `${loginId}登陆了工艺数据管理子系统` @@ -90,6 +88,8 @@ const TechLoginView = () => { fetch('/Personnel/Personnelapi/LogRecording', options) + history.push(`/animate?url=${encodeURIComponent(jumpTo)}`) + } const isUrl = (addr: any) => {