This commit is contained in:
2025-10-04 13:34:31 +08:00
parent ef0b0c5528
commit 204bbf2d3c
3 changed files with 436 additions and 493 deletions

View File

@@ -1,5 +1,4 @@
<script setup lang="ts">
import qs from "query-string"
import { getSubmission } from "oj/api"
import {
JUDGE_STATUS,
@@ -61,12 +60,7 @@ function copyToCat() {
input: "",
}
const base64 = utoa(JSON.stringify(data))
const url = qs.stringifyUrl({
url: import.meta.env.PUBLIC_CODE_URL,
query: {
share: base64,
},
})
const url = `${import.meta.env.PUBLIC_CODE_URL}?share=${encodeURIComponent(base64)}`
window.open(url, "_blank")
}