Skip to content

Commit

Permalink
Merge pull request #70 from DCUSnSLab/GEN-216_code_run_feature
Browse files Browse the repository at this point in the history
Gen 216 code run feature (develop branch)
  • Loading branch information
backgroundmin authored Jul 1, 2024
2 parents 37dbc76 + 0a487df commit 9a3cad7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/pages/oj/views/problem/Problem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
<div class="result-container">
<p class="sub-title">{{$t('결과 >')}}</p>
<div class="text-box"
:style="{color: runResultData[index] === '오류' ? 'black' : (runResultData[index] === '정답' ? 'green' : 'red')}">
:style="{color: (runResultData[index] === '오류' || runResultData[index] === '오류(시간초과)') ? 'black' : (runResultData[index] === '정답' ? 'green' : 'red')}">
<pre v-if="runResultData[index]">{{$t(runResultData[index].replace(/ /g, "_"))}}</pre>
</div>
</div>
Expand Down Expand Up @@ -416,7 +416,7 @@
<div class="result-container">
<p class="sub-title">{{$t('결과 >')}}</p>
<div class="text-box"
:style="{color: runResultData[index] === '오류' ? 'black' : (runResultData[index] === '정답' ? 'green' : 'red')}">
:style="{color: (runResultData[index] === '오류' || runResultData[index] === '오류(시간초과)') ? 'black' : (runResultData[index] === '정답' ? 'green' : 'red')}">
<pre v-if="runResultData[index]">{{$t(runResultData[index].replace(/ /g, "_"))}}</pre>
</div>
</div>
Expand Down Expand Up @@ -1039,6 +1039,8 @@
this.runResultData.push('오답')
} else if (resultData[i] === 0) {
this.runResultData.push('정답')
} else if (resultData[i] === 1) {
this.runResultData.push('오류(시간초과)')
} else {
this.runResultData.push('오류')
}
Expand Down

0 comments on commit 9a3cad7

Please sign in to comment.