Skip to content

Commit

Permalink
fix : 오류해결
Browse files Browse the repository at this point in the history
  • Loading branch information
david-parkk committed May 8, 2024
1 parent 246ec32 commit e37825d
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/main/resources/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html lang="en">
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down Expand Up @@ -120,6 +120,7 @@

// chatWebSocket.send(inputMessage.value);
//const username = document.getElementById("username").value.trim();
console.log(userId.value)
const messageObject = {
mapRequestType: "SAVE",
userId: userId.value,
Expand All @@ -131,12 +132,7 @@
rotationRoll: rotationRoll.value,
status: status.value
};
for (const key in messageObject) {
if (key !== 'mapRequestType' && key !== 'status') {
// mapRequestType과 status를 제외하고 모든 값을 double로 변환
messageObject[key] = parseFloat(messageObject[key]);
}
}

console.log("request",messageObject)
chatWebSocket.send(JSON.stringify(messageObject));
resetMessage()
Expand Down

0 comments on commit e37825d

Please sign in to comment.