禁止关闭绑定电话

This commit is contained in:
lyp 2025-04-22 17:34:17 +08:00
parent 5306ba2753
commit 525d37c887
2 changed files with 21 additions and 21 deletions

View File

@ -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'
}}>
<div style={{ cursor: 'pointer' }} onClick={() => {
{/* <div style={{ cursor: 'pointer' }} onClick={() => {
setIsUpdateWxUsernamePhone(false);
dispath({
type: 'changePhoneModal',
@ -2012,7 +2012,7 @@ export default function Head() {
getUserData()
}}>
<CloseOutlined />
</div>
</div> */}
</div>
<div style={{
@ -2106,14 +2106,14 @@ export default function Head() {
</Form>
</div>
<div className='closeTitle' onClick={() => {
{/* <div className='closeTitle' onClick={() => {
setIsUpdateWxUsernamePhone(false);
dispath({
type: 'changePhoneModal',
val: false
})
getUserData()
}}></div>
}}></div> */}

View File

@ -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 = '';