chore: replace all cn comments of fe to en version by volc api (#320)

This commit is contained in:
tecvan
2025-07-31 10:32:15 +08:00
committed by GitHub
parent 716ec0cba8
commit 71f6245a01
2960 changed files with 15545 additions and 15545 deletions

View File

@@ -42,10 +42,10 @@ export const EditorFullInputInner = forwardRef<EditorHandle, EditorInputProps>(
} = props;
const [value, setValue] = useState(propsValue);
// 创建一个可变引用以存储最新的value
// Create a mutable reference to store the latest value
const valueRef = useRef(value);
// 当value更新时同步更新valueRef
// When value is updated, synchronously update valueRef
useEffect(() => {
valueRef.current = value;
}, [value]);