From 471742cdf7710455d44416e3e8d890ff3e905af9 Mon Sep 17 00:00:00 2001 From: keqingmoe Date: Mon, 29 Sep 2025 20:19:30 +0800 Subject: [PATCH] 11 --- public/contest-data.json | 22 +++------------------- src/App.vue | 10 +++++++--- src/components/Board.vue | 1 + vite.config.ts | 3 +++ 4 files changed, 14 insertions(+), 22 deletions(-) diff --git a/public/contest-data.json b/public/contest-data.json index f6b45c9..f0079e8 100644 --- a/public/contest-data.json +++ b/public/contest-data.json @@ -1,9 +1,9 @@ { "contest": { "name": "ACM 模拟比赛", - "startTime": "2025-09-29T19:00:00+08:00", - "endTime": "2025-09-29T22:00:00+08:00", - "frozenTime": "2025-09-29T21:30:00+08:00" + "startTime": "2025-09-29T20:15:00+08:00", + "endTime": "2025-09-29T22:15:00+08:00", + "frozenTime": "2025-09-29T22:00:00+08:00" }, "users": [ { @@ -174,21 +174,5 @@ } ], "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 - } ] } diff --git a/src/App.vue b/src/App.vue index 0b68e03..a14f009 100644 --- a/src/App.vue +++ b/src/App.vue @@ -29,7 +29,11 @@ const currentView = computed(() => { }) diff --git a/src/components/Board.vue b/src/components/Board.vue index d485c03..5baf62e 100644 --- a/src/components/Board.vue +++ b/src/components/Board.vue @@ -422,6 +422,7 @@ onUnmounted(() => { padding: 20px; background: #f5f7fa; min-height: 100vh; + width: 100%; } .controls { diff --git a/vite.config.ts b/vite.config.ts index 4217010..431059a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -15,4 +15,7 @@ export default defineConfig({ '@': fileURLToPath(new URL('./src', import.meta.url)) }, }, + server: { + allowedHosts: ['v1.keqing.moe'] + } })