Skip to content

Commit

Permalink
fix: ranklist key (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
thezzisu authored Jan 6, 2024
1 parent ad525cb commit 6d72099
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .yarn/versions/afc28e5d.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
releases:
"@aoi-js/frontend": patch
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
v-for="ranklist in value"
:key="ranklist.key"
prepend-icon="mdi-list-box-outline"
:to="rel(ranklist.key)"
:to="rel(encodeURIComponent(ranklist.key))"
exact
>
{{ ranklist.name }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function addRanklist() {
await http.post(`contest/${contestId}/ranklist`, {
json: payload
})
router.replace(`/org/${orgId}/contest/${contestId}/ranklist/${payload.key}`)
router.replace(`/org/${orgId}/contest/${contestId}/ranklist/${encodeURIComponent(payload.key)}`)
emit('updated')
} catch (err) {
toast.error(`Error: ${err}`)
Expand Down

0 comments on commit 6d72099

Please sign in to comment.