update
Some checks failed
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2025-10-23 09:36:22 +08:00
parent 9f07fcb0a0
commit ee59039968
5 changed files with 14 additions and 42 deletions

View File

@@ -33,21 +33,18 @@ const ProblemFlowchart = defineAsyncComponent(
interface Props {
problemID: string
contestID?: string
problemSetId?: string
problemSetID?: string
}
const props = withDefaults(defineProps<Props>(), {
contestID: "",
problemSetId: "",
problemSetID: "",
})
const errMsg = ref("无数据")
const route = useRoute()
const router = useRouter()
// 从路由参数中获取题单ID
const problemsetID = computed(() => props.problemSetId || route.params.problemSetId as string)
const problemStore = useProblemStore()
const screenModeStore = useScreenModeStore()
const { problem } = storeToRefs(problemStore)