yuetsh b4ac42b736 出题表单:修复 SQL 题崩溃并隐藏流程图区域
流程图区域的"AI 生成"按钮读取 problem.answers 里 language==='Python3' 的
第一项 .code,SQL 题(languages=["SQL"])没有 Python3 答案,[0] 为
undefined,导致模板抛 TypeError 崩溃整个出题页。

流程图功能本身依赖 Python 答案生成 Mermaid 代码,对 SQL 题没有意义,
和已隐藏的"代码规则检查"一样直接整块隐藏(切到 SQL 时顺带重置
allow_flowchart/show_flowchart,避免脏数据)。顺手给禁用态判断加了
可选链,修掉未选 Python3 时同样会崩的潜在问题(如仅选 C/C++ 的题目)。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-02 17:45:44 -06:00
2026-05-05 09:54:52 -06:00
2026-06-14 08:46:35 -06:00
2026-06-03 07:19:53 -06:00
2026-06-14 08:52:47 -06:00
2026-05-06 20:39:08 -06:00
2026-05-26 07:37:09 -06:00
2026-03-10 14:15:45 +08:00
env
2025-10-08 18:35:49 +08:00
2025-10-11 13:37:23 +08:00
2026-03-08 20:58:50 +08:00
2025-07-16 09:17:43 +08:00
2026-03-17 08:13:04 +08:00
2025-10-05 21:07:29 +08:00
2026-07-02 17:23:23 -06:00
2026-05-07 08:40:48 -06:00
fix
2026-06-01 05:51:52 -06:00
2026-05-07 03:42:38 -06:00
fix
2026-05-05 07:26:47 -06:00
fix
2026-05-05 07:26:47 -06:00
Description
No description provided
Readme 11 MiB
Languages
Vue 73.2%
TypeScript 26.6%
CSS 0.2%