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

This commit is contained in:
xuyue committed 2026-03-30 19:03:52 -06:00
1 parent 8db17aba12
commit e9596e28a3
3 files changed
+16 -3

No files matched your search

+8
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(),
}