update
Some checks failed
Deploy / deploy (build, debian, 22, /root/OJDeploy/data/clientnext) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822, /root/OJ/data/dist) (push) Has been cancelled

This commit is contained in:
2026-05-26 02:19:39 -06:00
parent bf69a355fe
commit 714e07d514
4 changed files with 11 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
<script lang="ts" setup>
import { ProblemFiltered } from "utils/types"
import type { ProblemFiltered } from "utils/types"
import { Icon } from "@iconify/vue"
defineProps<{
@@ -19,5 +19,10 @@ defineProps<{
width="18"
icon="vscode-icons:file-type-graphql"
/>
<Icon
v-if="problem.has_ast_rules"
width="18"
icon="vscode-icons:file-type-light-todo"
/>
</n-flex>
</template>

View File

@@ -45,6 +45,7 @@ const sortOptions = [
{ label: "最多通过", value: "-accepted_number" },
{ label: "最少通过", value: "accepted_number" },
{ label: "画流程图", value: "flowchart" },
{ label: "语法检查", value: "ast" },
]
const router = useRouter()
@@ -240,6 +241,7 @@ function rowProps(row: ProblemFiltered) {
style="width: 120px"
v-model:value="query.sort"
:options="sortOptions"
:dropdown-style="{ maxHeight: 'unset' }"
/>
</n-form-item>
<n-form-item>