add user homepage.

This commit is contained in:
xuyue committed 2023-02-15 22:24:36 +08:00
1 parent b5e1b3db3a
commit 2ea6cc7385
8 files changed
+141 -36

No files matched your search

+1 -1
View File
@@ -61,7 +61,7 @@ onMounted(init)
>
<n-space>
<span>提交时间:{{ parseTime(submission.create_time) }}</span>
<span>语言:{{ submission.language }}</span>
<span>编程语言:{{ submission.language }}</span>
<span>用户:{{ submission.username }}</span>
</n-space>
</n-alert>
+9 -1
View File
@@ -196,7 +196,15 @@ const columns = computed(() => {
key: "username",
minWidth: 120,
render: (row) =>
h(NButton, { text: true, type: "info" }, () => row.username),
h(
NButton,
{
text: true,
type: "info",
onClick: () => router.push("/user?name=" + row.username),
},
() => row.username
),
},
]
if (!route.params.contestID && userStore.isSuperAdmin) {