diff --git a/src/admin/tutorial/components/ExerciseManager.vue b/src/admin/tutorial/components/ExerciseManager.vue index 9e810f2..96457fb 100644 --- a/src/admin/tutorial/components/ExerciseManager.vue +++ b/src/admin/tutorial/components/ExerciseManager.vue @@ -282,7 +282,7 @@ function typeTagType(type: string): "success" | "info" | "warning" { type="textarea" :rows="10" placeholder="在此粘贴正确的代码,保存后将自动按行拆分并乱序" - style="font-family: monospace" + style="font-family: 'Monaco'" /> @@ -302,7 +302,7 @@ function typeTagType(type: string): "success" | "info" | "warning" { type="textarea" :rows="10" placeholder="用 {{答案}} 标记空位,多个合法答案用 | 分隔,例如:for {{i|idx}} in range(10):" - style="font-family: monospace" + style="font-family: 'Monaco'" /> diff --git a/src/oj/learn/components/ExerciseFill.vue b/src/oj/learn/components/ExerciseFill.vue index 52c2b16..ba20164 100644 --- a/src/oj/learn/components/ExerciseFill.vue +++ b/src/oj/learn/components/ExerciseFill.vue @@ -90,16 +90,16 @@ function inputWidth(idx: number): string { style="margin: 16px 0; border: 1.5px solid var(--n-border-color)" >

{{ data.question }}


+  
>(() => { ? 'rgba(208,48,80,0.07)' : 'transparent', cursor: 'grab', - fontFamily: 'monospace', + fontFamily: 'Monaco', userSelect: 'none', }" @dragstart="onDragStart(idx)"