This commit is contained in:
2023-06-25 11:04:07 +08:00
parent f89d0ce7fb
commit 91b606708e
9 changed files with 22 additions and 12 deletions

View File

@@ -269,10 +269,12 @@ function getTemplate() {
}
async function submit() {
const notComplete = detectProblemCompletion()
if (notComplete) return
const notCompleted = detectProblemCompletion()
if (notCompleted) return
getTemplate()
problem.tags = [...newTags.value, ...fromExistingTags.value]
// 因为编辑器的问题,删掉空白的 hint
if ((problem.hint = "<p><br></p>")) problem.hint = ""
const api = {
"admin problem create": createProblem,
"admin problem edit": editProblem,