From 04c90e3f89f654a323f6f06042f6b709614a7205 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Mon, 12 Oct 2026 21:28:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=B5=81=E7=A8=8B=E5=9B=BE):=20=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E4=B8=8A=E4=B9=9F=E8=83=BD=E7=94=BB=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E5=9B=BE=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 原来手机上不给画(节点库是 HTML5 拖放,手机上拖不动),只能在结果页签里多一段只读的 「流程图点评」。换成插入式编辑器之后只用点,手机上照样能画: - 「代码」页签的工具栏里有「写代码 / 画流程图」、撤销、重做 - 屏幕底部那条在画流程图时换成「交给 AI 点评」 - 结果页签就是电脑上那一套(逐组结果、亮路径、载回画布),只读的那一段删了 Co-Authored-By: Claude Opus 5.5 --- .../oj/problem/components/EditorToolbar.vue | 4 +- .../problem/components/FlowchartControls.vue | 5 +- .../oj/problem/components/FlowchartResult.vue | 14 ++---- .../oj/problem/components/MobileActionBar.vue | 5 +- .../oj/problem/components/ProblemEditor.vue | 3 +- .../src/oj/problem/components/ResultPane.vue | 47 ++++--------------- .../oj/problem/components/SubmitFlowchart.vue | 15 ++++-- apps/web/src/oj/store/problem.ts | 8 ++-- 8 files changed, 36 insertions(+), 65 deletions(-) diff --git a/apps/web/src/oj/problem/components/EditorToolbar.vue b/apps/web/src/oj/problem/components/EditorToolbar.vue index 1616e3e..9d44567 100644 --- a/apps/web/src/oj/problem/components/EditorToolbar.vue +++ b/apps/web/src/oj/problem/components/EditorToolbar.vue @@ -206,13 +206,13 @@ const changeLanguage = (v: LANGUAGE) => { 运行例子 - +
- + { // 「交给 AI 点评」灰着的时候说一句为什么(设计稿 FlowResPass) @@ -22,7 +25,7 @@ const saved = computed(() => { diff --git a/apps/web/src/oj/problem/components/ProblemEditor.vue b/apps/web/src/oj/problem/components/ProblemEditor.vue index 29c2ea8..1616096 100644 --- a/apps/web/src/oj/problem/components/ProblemEditor.vue +++ b/apps/web/src/oj/problem/components/ProblemEditor.vue @@ -191,13 +191,12 @@ watch( ) // 流程图编辑器交给 store:结果页签(在左栏,不在编辑器底下)要拿当前画布比一比、 -// 把旧版本载回去。子组件 SubmitFlowchart 还是从 inject 拿 +// 把旧版本载回去;「交给 AI 点评」在手机上挂在屏幕底部那条,也从 store 拿 const flowchartStore = useFlowchartStore() watch(flowchartEditorRef, (editor) => flowchartStore.attachEditor(editor ?? null), { immediate: true, }) onBeforeUnmount(() => flowchartStore.attachEditor(null)) -provide("flowchartEditorRef", flowchartEditorRef)