diff --git a/src/oj/submission/list.vue b/src/oj/submission/list.vue index d39aa6c..eb560fe 100644 --- a/src/oj/submission/list.vue +++ b/src/oj/submission/list.vue @@ -15,7 +15,6 @@ import { isDesktop } from "~/shared/composables/breakpoints" import { useUserStore } from "~/shared/store/user" interface Query { - problem: string username: string result: string limit: number @@ -31,7 +30,6 @@ const message = useMessage() const submissions = ref([]) const total = ref(0) const query = reactive({ - problem: route.query.problem ?? "", result: route.query.result ?? "", page: parseInt(route.query.page) || 1, limit: parseInt(route.query.limit) || 10, @@ -48,7 +46,6 @@ const options: SelectOption[] = [ ] async function listSubmissions() { - query.problem = route.query.problem ?? "" query.result = route.query.result ?? "" query.page = parseInt(route.query.page) || 1 query.limit = parseInt(route.query.limit) || 10 @@ -74,6 +71,7 @@ function routerPush() { const newQuery = { ...query, myself: query.myself ? "1" : "0", + problem: route.query.problem, } router.push({ path: route.path,