From d7714dfe618355d690aed022449390031fc9c22d Mon Sep 17 00:00:00 2001 From: Youngster_yj <907985037@qq.com> Date: Thu, 11 Jul 2024 11:53:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=89=B9=E5=88=AB=E6=9B=B4=E6=94=B9?= =?UTF-8?q?=E4=B9=8B=E5=86=9C=E4=B8=9A=E9=93=B6=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix: - --- app/renderer/src/main/src/pages/EnterpriseJudgeLogin.tsx | 4 ++-- app/renderer/src/main/src/pages/MainOperator.tsx | 6 +++--- app/renderer/src/main/src/utils/login.tsx | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/renderer/src/main/src/pages/EnterpriseJudgeLogin.tsx b/app/renderer/src/main/src/pages/EnterpriseJudgeLogin.tsx index b091269519..95ef5b6003 100644 --- a/app/renderer/src/main/src/pages/EnterpriseJudgeLogin.tsx +++ b/app/renderer/src/main/src/pages/EnterpriseJudgeLogin.tsx @@ -16,7 +16,7 @@ const EnterpriseJudgeLogin: React.FC = (props) => { const {setJudgeLicense, setJudgeLogin} = props // License // const [licenseVerified, setLicenseVerified] = useState(false) - const [activateLicense, setActivateLicense] = useState(false) + const [activateLicense, setActivateLicense] = useState(true) const [loading, setLoading] = useState(true) const [licensePageLoading, setLicensePageLoading] = useState(false) useEffect(() => { @@ -96,7 +96,7 @@ const EnterpriseJudgeLogin: React.FC = (props) => { setJudgeLicense(false)} - skipShow={isEnpriTrace()||isEnpriTraceAgent()} + // skipShow={isEnpriTrace()||isEnpriTraceAgent()} /> ) : ( diff --git a/app/renderer/src/main/src/pages/MainOperator.tsx b/app/renderer/src/main/src/pages/MainOperator.tsx index 098e4dde57..37b90679b8 100644 --- a/app/renderer/src/main/src/pages/MainOperator.tsx +++ b/app/renderer/src/main/src/pages/MainOperator.tsx @@ -422,11 +422,11 @@ const Main: React.FC = React.memo((props) => { if (isCommunityEdition()) { return "" } else if (userInfo.isLogin) { - return userInfo.companyName || "" + return "农业银行专用" } else if (isEnpriTrace()) { - return "EnpriTrace-试用版" + return "农业银行专用" } else if (isEnpriTraceAgent()) { - return "EnpriTraceAgent-试用版" + return "农业银行专用" } return "" } diff --git a/app/renderer/src/main/src/utils/login.tsx b/app/renderer/src/main/src/utils/login.tsx index d949e0471e..f9b04fcd1d 100644 --- a/app/renderer/src/main/src/utils/login.tsx +++ b/app/renderer/src/main/src/utils/login.tsx @@ -46,11 +46,11 @@ export const loginOutLocal = (userInfo: UserInfoProps) => { OnlineBaseUrl }) .finally(() => { - ipcRenderer.send("user-sign-out") + ipcRenderer.send("user-sign-out",{isEnpriTrace:isEnpriTrace()}) emiter.emit("onRefLocalPluginList", "") }) } else { - ipcRenderer.send("user-sign-out") + ipcRenderer.send("user-sign-out",{isEnpriTrace:isEnpriTrace()}) } }) }