add view count
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled

This commit is contained in:
2026-03-30 19:03:52 -06:00
parent 8db17aba12
commit e9596e28a3
3 changed files with 16 additions and 3 deletions

View File

@@ -275,6 +275,12 @@ const columns: DataTableColumn<SubmissionOut>[] = [
width: 60,
render: (row) => row.submit_count || "-",
},
{
title: "浏览",
key: "view_count",
width: 60,
render: (row) => row.view_count || "-",
},
]
async function handleExpand(keys: (string | number)[]) {
@@ -398,6 +404,8 @@ onUnmounted(() => {
html: "",
css: "",
js: "",
submit_count: 0,
view_count: 0,
created: new Date(),
modified: new Date(),
}