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,

View File

@@ -45,7 +45,7 @@ const columns: DataTableColumn<AdminProblemFiltered>[] = [
title: "创建时间",
key: "create_time",
width: 200,
render: (row) => parseTime(row.create_time, "YYYY-MM-DD hh:mm:ss"),
render: (row) => parseTime(row.create_time, "YYYY-MM-DD HH:mm:ss"),
},
{
title: "可见",