mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
修复katex角标漂移等问题
This commit is contained in:
1 parent
1f1efe900c
commit
a248425db6
17 files changed
+491
-235
No files matched your search
@@ -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}`;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user