Compare commits

..

No commits in common. "782350dc77a2cb03a0d08af48bb985d2da49856c" and "39010986d254b5b45fe9de615d0a6e4b016ac2fe" have entirely different histories.

4 changed files with 2 additions and 22 deletions

View File

@ -222,7 +222,6 @@ const JoinSetting = forwardRef((_props: any, ref: any) => {
})
} else {
message.error('房间号不存在!')
storage.setItem('loading', false)
}
})
}}

View File

@ -9,7 +9,6 @@ const SingIn = forwardRef((props: any, ref: any) => {
getRoomSingnIn()
},
getModal: () => {
setIsMessage(true)
return new Promise((resolve, reject) => {
setSingInModal(bool => {
resolve(bool)
@ -19,20 +18,12 @@ const SingIn = forwardRef((props: any, ref: any) => {
},
}))
const [singInModal, setSingInModal] = useState(false);
const [isMessage, setIsMessage] = useState(false);
const [singInList, setSingInList] = useState([]);
const getRoomSingnIn = async (): Promise<void> => {
await GetRoomSingnIn().then(res => {
if (res.code === 200) {
if (res.data.length) {
setSingInModal(true)
} else {
setIsMessage(bool => {
if (!bool) {
message.error('暂未绑定签到人,请联系管理员添加后签到!')
}
return false
})
}
setSingInList(res.data.map((item: any) => {
return {

View File

@ -475,7 +475,7 @@ const Index: React.FC = () => {
if (!createRoomFrom.roomNum) {
return message.error('请输入房间号!')
}
if (createRoomFrom.year === "") {
if (!createRoomFrom.year) {
return message.error('请输入届!')
}
if (isCreateRoom) {

View File

@ -82,17 +82,7 @@ class Request {
break;
}
} else {
switch (err.code) {
case "ECONNABORTED":
message.error('网络连接超时,请检查网络状态')
break;
case "ERR_NETWORK":
message.error('网络已断开,请检查网络状态')
break;
default:
message.error(err.message)
break;
}
}
}
)