fix
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-06-03 07:41:14 -06:00
parent d8363b997a
commit 39dbe143cb
3 changed files with 9 additions and 15 deletions

View File

@@ -86,16 +86,15 @@ function inputWidth(idx: number): string {
<template>
<n-card
size="small"
style="margin: 16px 0; border: 1.5px solid var(--n-border-color)"
>
<template #header>
<n-tag type="warning" size="small" :bordered="false"
<n-tag type="warning" :bordered="false"
>练一练 · 代码填空</n-tag
>
</template>
<p style="font-weight: 500; margin-bottom: 12px">{{ data.question }}</p>
<p style="font-weight: 500; font-size: 16px; margin-bottom: 12px">{{ data.question }}</p>
<pre
:style="{
@@ -148,13 +147,12 @@ function inputWidth(idx: number): string {
<n-space style="margin-top: 12px" :size="8">
<n-button
type="warning"
size="small"
:disabled="allCorrect"
@click="submit"
>
提交
</n-button>
<n-button size="small" @click="reset">重置</n-button>
<n-button @click="reset">重置</n-button>
</n-space>
</n-card>
</template>

View File

@@ -64,18 +64,17 @@ function optionType(idx: number): "default" | "primary" | "success" {
<template>
<n-card
size="small"
style="margin: 16px 0; border: 1.5px solid var(--n-border-color)"
>
<template #header>
<n-space align="center" :size="8">
<n-tag type="success" size="small" :bordered="false">
<n-tag type="success" :bordered="false">
练一练 · {{ isSingle ? "单选题" : "多选题" }}
</n-tag>
</n-space>
</template>
<p style="font-weight: 500; margin-bottom: 12px">{{ data.question }}</p>
<p style="font-weight: 500; font-size: 16px; margin-bottom: 12px">{{ data.question }}</p>
<n-space vertical :size="8">
<n-button
@@ -113,13 +112,12 @@ function optionType(idx: number): "default" | "primary" | "success" {
<n-space style="margin-top: 12px" :size="8">
<n-button
type="primary"
size="small"
:disabled="selected.size === 0 || correct"
@click="submit"
>
提交
</n-button>
<n-button size="small" @click="reset">重置</n-button>
<n-button @click="reset">重置</n-button>
</n-space>
</n-card>
</template>

View File

@@ -102,16 +102,15 @@ const lineHtmlMap = computed<Record<number, string>>(() => {
<template>
<n-card
size="small"
style="margin: 16px 0; border: 1.5px solid var(--n-border-color)"
>
<template #header>
<n-tag type="info" size="small" :bordered="false"
<n-tag type="info" :bordered="false"
>练一练 · 代码排序</n-tag
>
</template>
<p style="font-weight: 500; margin-bottom: 12px">{{ data.question }}</p>
<p style="font-weight: 500; font-size: 16px; margin-bottom: 12px">{{ data.question }}</p>
<n-space vertical :size="6">
<div
@@ -160,13 +159,12 @@ const lineHtmlMap = computed<Record<number, string>>(() => {
<n-space style="margin-top: 12px" :size="8">
<n-button
type="info"
size="small"
:disabled="submitted && allCorrect"
@click="submit"
>
提交
</n-button>
<n-button size="small" @click="reset">重置</n-button>
<n-button @click="reset">重置</n-button>
</n-space>
</n-card>
</template>