Skip to content

Commit

Permalink
Fix typo in Problem.vue
Browse files Browse the repository at this point in the history
  testcaseAPI parameterId 오류 수정
  testcase 내용 불러오지 못하는 오류 수정
  • Loading branch information
cranemont committed Aug 1, 2021
1 parent e88fc1a commit 1e7b15d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/admin/views/problem/Problem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,9 @@ export default {
data.testcases = []
this.problem = data
this.testCaseUploaded = true
const testcaseRes = await api.getTestCase(this.$route.params.problemID)
const testcaseRes = await api.getTestCase(this.$route.params.problemId)
const testcaseData = testcaseRes.data.data
this.problem.testcases = this.problem.testcases.concat(testcaseData.testcase)
this.problem.testcases = this.problem.testcases.concat(testcaseData.testcases)
if (testcaseData.spj === 'True') this.problem.spj = true
else this.problem.spj = testcaseData.spj === 'True'
} else {
Expand Down

0 comments on commit 1e7b15d

Please sign in to comment.