diff --git a/src/oj/problem/list.vue b/src/oj/problem/list.vue index 220a2f7..c52d640 100644 --- a/src/oj/problem/list.vue +++ b/src/oj/problem/list.vue @@ -34,7 +34,7 @@ const difficultyOptions = [ { label: "困难", value: "High" }, ] -const authorOptions = ref([{label: "全部", value: ""}]) +const authorOptions = ref([{ label: "全部", value: "" }]) const router = useRouter() @@ -53,12 +53,14 @@ const { query, clearQuery } = usePagination({ }) async function getAuthorOptions() { - authorOptions.value = [{label: "全部", value: ""}] + authorOptions.value = [{ label: "全部", value: "" }] const res = await getAuthors() - const remotes = res.data.map((item: {username: string, problem_count: number}) => ({ - label: `${item.username} (${item.problem_count})`, - value: item.username, - })) + const remotes = res.data.map( + (item: { username: string; problem_count: number }) => ({ + label: `${item.username} (${item.problem_count})`, + value: item.username, + }), + ) authorOptions.value = [...authorOptions.value, ...remotes] } @@ -242,18 +244,22 @@ function rowProps(row: ProblemFiltered) { 重置 - 试试手气 + 试试手气 + + + 标签 + - - - 标签 -