This commit is contained in:
keqingmoe 2025-09-29 20:19:30 +08:00
parent 8163233f6e
commit 471742cdf7
4 changed files with 14 additions and 22 deletions

View File

@ -1,9 +1,9 @@
{ {
"contest": { "contest": {
"name": "ACM 模拟比赛", "name": "ACM 模拟比赛",
"startTime": "2025-09-29T19:00:00+08:00", "startTime": "2025-09-29T20:15:00+08:00",
"endTime": "2025-09-29T22:00:00+08:00", "endTime": "2025-09-29T22:15:00+08:00",
"frozenTime": "2025-09-29T21:30:00+08:00" "frozenTime": "2025-09-29T22:00:00+08:00"
}, },
"users": [ "users": [
{ {
@ -174,21 +174,5 @@
} }
], ],
"submissions": [ "submissions": [
{
"id": 1,
"userId": "1",
"problemId": "A",
"result": "AC",
"submitTime": "2025-09-29T19:10:00+08:00",
"contestTime": 30
},
{
"id": 1759146192739,
"userId": "1",
"problemId": "C",
"result": "AC",
"submitTime": "2025-09-29T11:43:00.000Z",
"contestTime": 100
}
] ]
} }

View File

@ -29,7 +29,11 @@ const currentView = computed(() => {
}) })
</script> </script>
<template> <template>
<a href="#/">排行榜</a> | <div>
<a href="#/new">创建提交记录</a> <div>
<component :is="currentView" /> <a href="#/">排行榜</a> |
<a href="#/new">创建提交记录</a>
</div>
<component :is="currentView" />
</div>
</template> </template>

View File

@ -422,6 +422,7 @@ onUnmounted(() => {
padding: 20px; padding: 20px;
background: #f5f7fa; background: #f5f7fa;
min-height: 100vh; min-height: 100vh;
width: 100%;
} }
.controls { .controls {

View File

@ -15,4 +15,7 @@ export default defineConfig({
'@': fileURLToPath(new URL('./src', import.meta.url)) '@': fileURLToPath(new URL('./src', import.meta.url))
}, },
}, },
server: {
allowedHosts: ['v1.keqing.moe']
}
}) })