refactor(web): 删掉 SyncCodeEditor 的 problem prop

老实现的残留:sync.ts 拿它拼房间名 problem-${problemId}。新实现的房间以
学生为键、由服务端分配,前端不需要题号 —— 这个必填 prop 声明之后
整个组件再没用过第二次。

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016DHxhKNxXfG89JnVzHbvgj
This commit is contained in:
2026-08-30 09:05:48 -06:00
parent 4b6242ba70
commit bb33e0f0e5
2 changed files with 0 additions and 2 deletions

View File

@@ -80,7 +80,6 @@ provide("flowchartEditorRef", flowchartEditorRef)
<SyncCodeEditor
v-else
v-model:value="codeStore.code.value"
:problem="problem!._id"
:language="codeStore.code.language"
:height="editorHeight"
@update:model-value="changeCode"

View File

@@ -24,7 +24,6 @@ const collabStore = useCollabStore()
const { start, stop, getInitialExtension } = useCollabDoc()
interface Props {
problem: string
language?: LANGUAGE
fontSize?: number
height?: string