This commit is contained in:
2025-10-05 01:34:22 +08:00
parent 7b139d404e
commit aa8fcccf7d
4 changed files with 48 additions and 6 deletions

View File

@@ -234,6 +234,8 @@ export function useCodeSync() {
import("y-codemirror.next"),
])
console.log("Yjs 相关模块导入完成")
// 初始化文档和提供者
ydoc = new Y.Doc()
ytext = ydoc.getText("codemirror")