From 8c494df62d89f0c24937681c73e3541233edf4a6 Mon Sep 17 00:00:00 2001 From: wuzuowei Date: Fri, 19 Jul 2024 18:31:37 +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 | 6 +++--- platform-code/src/pages/tech/login/index.tsx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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) => {