更新文档: 测试一个代码

2025-10-20 06:50:47 +00:00
parent ac720fe4bd
commit d92e46cf21

@@ -1,6 +1,6 @@
```ts ```ts
{/* 内容 */} {/* 内容 */}
// 当外部内容变化时,更新 Vditor 的值 // 当外部内容变化时,更新 Vditor 的值32132132
useEffect(() => { useEffect(() => {
// 只有在编辑器已初始化且不是用户编辑时才处理外部更新 // 只有在编辑器已初始化且不是用户编辑时才处理外部更新
if (isInitializedRef.current && vditorInstanceRef.current && !isUserEditingRef.current) { if (isInitializedRef.current && vditorInstanceRef.current && !isUserEditingRef.current) {