fix ui.
This commit is contained in:
@@ -4,5 +4,5 @@ import { Code } from "~/utils/types"
|
||||
|
||||
export const code = reactive<Code>({
|
||||
value: "",
|
||||
language: storage.get(STORAGE_KEY.LANGUAGE) || "C",
|
||||
language: storage.get(STORAGE_KEY.LANGUAGE) || "Python3",
|
||||
})
|
||||
|
||||
@@ -25,11 +25,11 @@ const contestStore = useContestStore()
|
||||
<n-descriptions bordered label-placement="left" :column="1">
|
||||
<n-descriptions-item label="开始时间">
|
||||
{{
|
||||
parseTime(contestStore.contest.start_time, "YYYY年M月D日 hh:mm:ss")
|
||||
parseTime(contestStore.contest.start_time, "YYYY年M月D日 HH:mm:ss")
|
||||
}}
|
||||
</n-descriptions-item>
|
||||
<n-descriptions-item label="结束时间">
|
||||
{{ parseTime(contestStore.contest.end_time, "YYYY年M月D日 hh:mm:ss") }}
|
||||
{{ parseTime(contestStore.contest.end_time, "YYYY年M月D日 HH:mm:ss") }}
|
||||
</n-descriptions-item>
|
||||
<n-descriptions-item label="比赛类型">
|
||||
<ContestType :contest="contestStore.contest" />
|
||||
|
||||
@@ -184,6 +184,10 @@ function type(status: ProblemStatus) {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
.problemContent > .content > p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.problemContent > .content > blockquote {
|
||||
border-left: 3px solid #bbbec4;
|
||||
padding-left: 10px;
|
||||
@@ -251,4 +255,8 @@ function type(status: ProblemStatus) {
|
||||
border-radius: 3px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.problemContent > .content a {
|
||||
color: #18a058;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -21,7 +21,7 @@ const columns: DataTableColumn<Submission>[] = [
|
||||
render: (row) =>
|
||||
parseTime(
|
||||
row.create_time,
|
||||
isDesktop ? "YYYY-MM-DD hh:mm:ss" : "M-D hh:mm"
|
||||
isDesktop ? "YYYY-MM-DD HH:mm:ss" : "M-D hh:mm"
|
||||
),
|
||||
},
|
||||
{
|
||||
|
||||
@@ -123,7 +123,7 @@ const columns = computed(() => {
|
||||
render: (row) =>
|
||||
parseTime(
|
||||
row.create_time,
|
||||
isDesktop ? "YYYY-MM-DD hh:mm:ss" : "M-D hh:mm"
|
||||
isDesktop ? "YYYY-MM-DD HH:mm:ss" : "M-D hh:mm"
|
||||
),
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user