From ff3fdc0b1d709ee5dd86dddd1cecb92f8b715cc0 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Fri, 16 Oct 2026 15:43:25 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E5=87=BA=E9=A2=98=E9=A1=B5):=20?= =?UTF-8?q?=E7=BC=96=E7=A8=8B=E9=A2=98=E5=92=8C=20SQL=20=E9=A2=98=E4=B8=A4?= =?UTF-8?q?=E4=B8=AA=E5=87=BA=E9=A2=98=E9=A1=B5=E6=8A=84=E4=BA=86=E4=B8=A4?= =?UTF-8?q?=E4=BB=BD=E7=9A=84=E9=9B=B6=E4=BB=B6=E6=94=B6=E5=88=B0=E4=B8=80?= =?UTF-8?q?=E5=A4=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit admin/problem/components/problemForm.ts:判空富文本 isBlankHtml(原来三份,CodePreview 里还有 一份)、难度选项、返回列表的路由、保存失败的提示、标签超长校验、新建页的草稿 (useCreateDraft:停 0.8 秒存、什么都没填就清、编辑页不存)。 纯搬家。新建 / 编辑 × 编程 / SQL 四个页面改前改后整页截图逐像素一致;两种新建页填个 标题、刷新能恢复,「清空草稿」之后本地存储清掉。 Co-Authored-By: Claude Opus 5.5 --- apps/web/src/admin/problem/SqlDetail.vue | 77 +++++++----------- .../admin/problem/components/CodePreview.vue | 3 +- .../admin/problem/components/problemForm.ts | 66 +++++++++++++++ apps/web/src/admin/problem/detail.vue | 80 ++++++++----------- 4 files changed, 126 insertions(+), 100 deletions(-) create mode 100644 apps/web/src/admin/problem/components/problemForm.ts diff --git a/apps/web/src/admin/problem/SqlDetail.vue b/apps/web/src/admin/problem/SqlDetail.vue index 5a48f6f..90ae0c8 100644 --- a/apps/web/src/admin/problem/SqlDetail.vue +++ b/apps/web/src/admin/problem/SqlDetail.vue @@ -1,8 +1,7 @@