fix submission.
This commit is contained in:
@@ -13,9 +13,9 @@ import { Submission } from "utils/types"
|
||||
import { adminRejudge, getSubmissions } from "oj/api"
|
||||
import { isDesktop } from "~/shared/composables/breakpoints"
|
||||
import { useUserStore } from "~/shared/store/user"
|
||||
import { useConfigStore } from "~/shared/store/config"
|
||||
|
||||
interface Query {
|
||||
problem: string
|
||||
username: string
|
||||
result: string
|
||||
limit: number
|
||||
@@ -26,12 +26,12 @@ interface Query {
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
const userStore = useUserStore()
|
||||
const configStore = useConfigStore()
|
||||
const message = useMessage()
|
||||
|
||||
const submissions = ref([])
|
||||
const total = ref(0)
|
||||
const query = reactive<Query>({
|
||||
problem: <string>route.query.problem ?? "",
|
||||
result: <string>route.query.result ?? "",
|
||||
page: parseInt(<string>route.query.page) || 1,
|
||||
limit: parseInt(<string>route.query.limit) || 10,
|
||||
@@ -48,6 +48,7 @@ const options: SelectOption[] = [
|
||||
]
|
||||
|
||||
async function listSubmissions() {
|
||||
query.problem = <string>route.query.problem ?? ""
|
||||
query.result = <string>route.query.result ?? ""
|
||||
query.page = parseInt(<string>route.query.page) || 1
|
||||
query.limit = parseInt(<string>route.query.limit) || 10
|
||||
|
||||
Reference in New Issue
Block a user