修复katex角标漂移等问题

This commit is contained in:
undefined committed 2020-06-24 11:47:43 +08:00
1 parent 1f1efe900c
commit a248425db6
17 files changed
+491 -235

No files matched your search

+1 -1
View File
@@ -279,7 +279,7 @@ class ProblemEditHandler extends ProblemManageHandler {
async post({ domainId, title, content }) {
const pid = validator.checkPid(this.request.body.pid);
const pdoc = await problem.get(domainId, this.params.pid);
const pdoc = await problem.get(domainId, this.request.params.pid);
await problem.edit(domainId, pdoc.docId, { title, content, pid });
this.response.redirect = `/p/${pid}`;
}