From 525d37c887c427474a6fd275aa6b0a6245b283b9 Mon Sep 17 00:00:00 2001 From: lyp Date: Tue, 22 Apr 2025 17:34:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=81=E6=AD=A2=E5=85=B3=E9=97=AD=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E7=94=B5=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/head/Head.tsx | 38 +++++++++++++++++++------------------- src/util/AjaxUtils.ts | 4 ++-- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/src/layout/head/Head.tsx b/src/layout/head/Head.tsx index 3857b69..b88667a 100644 --- a/src/layout/head/Head.tsx +++ b/src/layout/head/Head.tsx @@ -22,9 +22,9 @@ import { Dropdown, MenuProps, message, Modal, Space, Spin, Input, Table, Form, Button // Form, Button, InputNumber } from "antd"; -import { - CloseOutlined -} from '@ant-design/icons'; +// import { +// CloseOutlined +// } from '@ant-design/icons'; import title from '../../static/Phone/title.png' import titleB from '../../static/Phone/titleB.png' import line from '../../static/Phone/line.png' @@ -1026,19 +1026,19 @@ export default function Head() { } }); }, [globalContext.user]); - const getUserData = () => { - reloadUser(messageApi, globalDispatchContext).then((data) => { - // console.log(data); + // const getUserData = () => { + // reloadUser(messageApi, globalDispatchContext).then((data) => { + // // console.log(data); - //嘻嘻嘻 - if (!data.hasUserInfo) { - setIsSelfModalOpen(true); - } - // if (!data.hasUserInfo && !phoneModal) { - // setIsSelfModalOpen(true); - // } - }); - } + // //嘻嘻嘻 + // if (!data.hasUserInfo) { + // setIsSelfModalOpen(true); + // } + // // if (!data.hasUserInfo && !phoneModal) { + // // setIsSelfModalOpen(true); + // // } + // }); + // } // 刷新用户信息 const reloadUserInterval = async () => { @@ -2003,7 +2003,7 @@ export default function Head() { // background: 'pink' }}> -
{ + {/*
{ setIsUpdateWxUsernamePhone(false); dispath({ type: 'changePhoneModal', @@ -2012,7 +2012,7 @@ export default function Head() { getUserData() }}> -
+
*/}
-
{ + {/*
{ setIsUpdateWxUsernamePhone(false); dispath({ type: 'changePhoneModal', val: false }) getUserData() - }}>跳过,下次再说
+ }}>跳过,下次再说
*/} diff --git a/src/util/AjaxUtils.ts b/src/util/AjaxUtils.ts index a11583e..ca42975 100644 --- a/src/util/AjaxUtils.ts +++ b/src/util/AjaxUtils.ts @@ -22,8 +22,8 @@ export const WebSocketBaseUrl: string = `ws://${host}:7025/copyright`; axios.defaults.baseURL = `${copyBaseUrl}/copyright`; -// export const DevUserId: string = '80d3365e-0597-4988-979e-18ef1c3ec671'; // 18634604067 -export const DevUserId: string = '2339d51f-f6cf-4f93-92dd-56c372dfbe36'; +export const DevUserId: string = '80d3365e-0597-4988-979e-18ef1c3ec671'; // 18634604067 +// export const DevUserId: string = '2339d51f-f6cf-4f93-92dd-56c372dfbe36'; // export const DevUserId: string = '6fb8e783-243c-4eec-8d98-c9b1c8aeaa00'; // 15042810561 密码123456 // export const DevUserId: string = 'c2438eb8-2685-49a9-bf02-5111a5192d96'; // 18647109157 // export const DevUserId: string = '';