fix ui.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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: "可见",
|
||||
|
||||
Reference in New Issue
Block a user