fix.
This commit is contained in:
@@ -15,7 +15,6 @@ import { isDesktop } from "~/shared/composables/breakpoints"
|
|||||||
import { useUserStore } from "~/shared/store/user"
|
import { useUserStore } from "~/shared/store/user"
|
||||||
|
|
||||||
interface Query {
|
interface Query {
|
||||||
problem: string
|
|
||||||
username: string
|
username: string
|
||||||
result: string
|
result: string
|
||||||
limit: number
|
limit: number
|
||||||
@@ -31,7 +30,6 @@ const message = useMessage()
|
|||||||
const submissions = ref([])
|
const submissions = ref([])
|
||||||
const total = ref(0)
|
const total = ref(0)
|
||||||
const query = reactive<Query>({
|
const query = reactive<Query>({
|
||||||
problem: <string>route.query.problem ?? "",
|
|
||||||
result: <string>route.query.result ?? "",
|
result: <string>route.query.result ?? "",
|
||||||
page: parseInt(<string>route.query.page) || 1,
|
page: parseInt(<string>route.query.page) || 1,
|
||||||
limit: parseInt(<string>route.query.limit) || 10,
|
limit: parseInt(<string>route.query.limit) || 10,
|
||||||
@@ -48,7 +46,6 @@ const options: SelectOption[] = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
async function listSubmissions() {
|
async function listSubmissions() {
|
||||||
query.problem = <string>route.query.problem ?? ""
|
|
||||||
query.result = <string>route.query.result ?? ""
|
query.result = <string>route.query.result ?? ""
|
||||||
query.page = parseInt(<string>route.query.page) || 1
|
query.page = parseInt(<string>route.query.page) || 1
|
||||||
query.limit = parseInt(<string>route.query.limit) || 10
|
query.limit = parseInt(<string>route.query.limit) || 10
|
||||||
@@ -74,6 +71,7 @@ function routerPush() {
|
|||||||
const newQuery = {
|
const newQuery = {
|
||||||
...query,
|
...query,
|
||||||
myself: query.myself ? "1" : "0",
|
myself: query.myself ? "1" : "0",
|
||||||
|
problem: route.query.problem,
|
||||||
}
|
}
|
||||||
router.push({
|
router.push({
|
||||||
path: route.path,
|
path: route.path,
|
||||||
|
|||||||
Reference in New Issue
Block a user