fix
This commit is contained in:
@@ -42,7 +42,7 @@ const props = defineProps<Props>()
|
|||||||
defineEmits(["showCode"])
|
defineEmits(["showCode"])
|
||||||
|
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
const isOwnSubmission = computed(() => userStore.profile?.id === props.submission.user_id)
|
const isOwnSubmission = computed(() => userStore.profile?.user?.id === props.submission.user_id)
|
||||||
|
|
||||||
function goto() {
|
function goto() {
|
||||||
window.open("/submission/" + props.submission.id, "_blank")
|
window.open("/submission/" + props.submission.id, "_blank")
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
getTodaySubmissionCount,
|
getTodaySubmissionCount,
|
||||||
} from "oj/api"
|
} from "oj/api"
|
||||||
import { parseTime } from "utils/functions"
|
import { parseTime } from "utils/functions"
|
||||||
import {
|
import type {
|
||||||
FlowchartSubmissionListItem,
|
FlowchartSubmissionListItem,
|
||||||
LANGUAGE,
|
LANGUAGE,
|
||||||
SubmissionListItem,
|
SubmissionListItem,
|
||||||
@@ -418,9 +418,9 @@ const flowchartColumns: DataTableColumn<FlowchartSubmissionListItem>[] = [
|
|||||||
size="large"
|
size="large"
|
||||||
@update:checked="(v: boolean) => (query.today = v ? '1' : '0')"
|
@update:checked="(v: boolean) => (query.today = v ? '1' : '0')"
|
||||||
>
|
>
|
||||||
<n-gradient-text v-if="query.today !== '1'" type="success"
|
<n-gradient-text v-if="query.today !== '1'" type="success">
|
||||||
>今日提交数:{{ todayCount }}</n-gradient-text
|
今日提交数:{{ todayCount }}
|
||||||
>
|
</n-gradient-text>
|
||||||
<template v-else>今日提交数:{{ todayCount }}</template>
|
<template v-else>今日提交数:{{ todayCount }}</template>
|
||||||
</n-tag>
|
</n-tag>
|
||||||
</n-space>
|
</n-space>
|
||||||
|
|||||||
Reference in New Issue
Block a user