From 4c92545972911a337204ca3e17f3b6075af8fbf2 Mon Sep 17 00:00:00 2001 From: wuzuowei Date: Sun, 12 May 2024 16:37:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/tech/login/Senselesslogin.tsx | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/platform-code/src/pages/tech/login/Senselesslogin.tsx b/platform-code/src/pages/tech/login/Senselesslogin.tsx index 3bac937..2fc3a58 100644 --- a/platform-code/src/pages/tech/login/Senselesslogin.tsx +++ b/platform-code/src/pages/tech/login/Senselesslogin.tsx @@ -18,17 +18,17 @@ const TechLoginView = () => { const paramValue = searchParams.get('token'); const pathValue = searchParams.get('path'); // const history = useHistory(); - console.log("token111:" + paramValue, "pathValue111:" + pathValue, searchParams); + // console.log("token111:" + paramValue, "pathValue111:" + pathValue, searchParams); useEffect(() => { - console.log("token:" + paramValue, "pathValue:" + pathValue); + // console.log("token:" + paramValue, "pathValue:" + pathValue); current(paramValue); }, []) const current = (date: string) => { - console.log("date", date) + // console.log("date", date) requestaxios @@ -40,11 +40,11 @@ const TechLoginView = () => { } }) .then(({ data }) => { - console.log("data", data.code, data); + // console.log("data", data.code, data); if (data.loginName != undefined) { //拿到账号密码之后进行登录 - console.log(data); + // console.log(data); let month = new Date().getTime() + 1000 * 24 * 3600 * 30 * 3 utils.saveCookie('CZtoken', paramValue, month) @@ -78,7 +78,7 @@ const TechLoginView = () => { } let result = await MicroApps.GetRuntimeUser().doLogin(loginId, "000000") - console.log("resultresult111111111111", result) + // console.log("resultresult111111111111", result) if (isString(result)) { message.error(result) @@ -87,12 +87,12 @@ const TechLoginView = () => { let redirect: any = history.location.query?.redirect let jumpTo: string | undefined = undefined - console.log("111111111111", redirect) + // console.log("111111111111", redirect) if (redirect) { let rd = decodeURIComponent(redirect) jumpTo = isUrl(rd) ? rd : undefined - console.log("22222222222", rd, jumpTo) + // console.log("22222222222", rd, jumpTo) } @@ -130,7 +130,6 @@ const TechLoginView = () => { } return ( <> - 2222222222222222 );