Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 노말모드exp추가, 랭크모드 게임결과 update #89

Merged
merged 2 commits into from
Dec 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 13 additions & 12 deletions src/components/code/Normal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,21 +179,21 @@ export default {
this.disconnect();
console.log(this.roomMemberList.length)
console.log(this.resultMemberNo)
const url = ``
const url = `${this.backURL}/member/exp?memberNo=${this.resultMemberNo}&roomSize=${this.roomMemberList.length}`
if(this.resultMemberNo == this.memberNo){
// apiClient 보내기
// apiClient
// .put(url, {
// headers: {
// 'Content-Type': 'application/json'
// }
// })
// .then((response) => {
// this.quiz
// })
apiClient
.put(url, {
headers: {
'Content-Type': 'application/json'
}
})
.then((response) => {
console.log(response.data);
})
}
this.$router.push({ path: `/` })

},
setWinMember(dataFromChild){
this.winMemberNo = dataFromChild;
Expand Down Expand Up @@ -592,6 +592,7 @@ body.flex-container {
#relative-code-container {
/* display: flex; */
display: flex;
height: 100%;
flex-direction: column;
justify-content: center;
align-items: center;
Expand All @@ -601,7 +602,7 @@ body.flex-container {

#relative-code-content {
width: 200px;
height: 18vh;
height: 20%;
margin-bottom: 16px;
border: 3px solid var(--main5-color);
border-radius: 10px;
Expand Down
1 change: 1 addition & 0 deletions src/components/code/RankMonaco.vue
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ export default defineComponent({
this.gameResult = '1'
if(this.gameResult == '1'){
this.$emit('monacoWinMemberNo', this.memberNo);
// this.$emit('monacoGameResult', this.gameResult);
}

//게임 결과 update
Expand Down
2 changes: 1 addition & 1 deletion src/components/profile/MyCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default {
},
mounted() {
this.memberNo = this.$route.params.memberNo;

console.log(this.memberNo)
const url = `${this.backURL}/mycode/${this.memberNo}`;
apiClient
.get(url, {
Expand Down
Loading