| | |
| | | <div class="title-container text-3xl font-semibold text-white mr-8"> |
| | | {{ examInfo.examName }} |
| | | </div> |
| | | <AnswerTime @timeOut="timeOut"></AnswerTime> |
| | | <AnswerTime @timeOut="timeOut" ref="answerTime"></AnswerTime> |
| | | |
| | | <div class="return-container grow flex justify-end"> |
| | | <el-button type="danger" size="large" circle @click="closeClick"> |
| | |
| | | const submitDialog = ref(false); |
| | | const timeDialog = ref(false); |
| | | |
| | | // const { status, message, error, connect, disconnect, sendMessage } = useWebScoket({ |
| | | // url: 'wss://42.193.1.25:8000/websocket/' + userInfo.value.id, |
| | | // heartBeatData: 'ping' |
| | | // }); |
| | | |
| | | const { status, message, error, connect, disconnect, sendMessage } = useWebScoket({ |
| | | url: 'wss://42.193.1.25:8000/websocket/' + userInfo.value.id, |
| | | url: '//192.168.3.64:8000/websocket/' + userInfo.value.id, |
| | | heartBeatData: 'ping' |
| | | }); |
| | | |
| | |
| | | }); |
| | | examStore.setProgress(progress); |
| | | }); |
| | | |
| | | const answerTime = ref() |
| | | watch(() => message.value, (msg) => { |
| | | console.log(msg); |
| | | if(msg.commend=="delayed"){ |
| | | answerTime.value.addTime(msg.data.addTimeM) |
| | | }else if(msg.commend=="forceSubmit"){ |
| | | confirmSubmit() |
| | | } |
| | | }); |
| | | |
| | | |