fix
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-05-07 01:46:43 -06:00
parent 67a44d7637
commit 7d8eff4ee8
14 changed files with 238 additions and 290 deletions

View File

@@ -54,7 +54,7 @@ async function submit() {
const api = {
"admin announcement create": createAnnouncement,
"admin announcement edit": editAnnouncement,
}[<string>route.name]
}[route.name as string]
try {
await api!(announcement)
if (route.name === "admin announcement create") {