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

@@ -18,7 +18,7 @@ import { useState, useRef, type Dispatch, type SetStateAction, useCallback } fro
const isFunction = (val: any): val is Function => typeof val === 'function';
// 获取新的状态值,兼容传值和传函数情况
// Get a new state value, compatible with passing values and functions
function getStateVal<T>(preState: T, initVal?: SetStateAction<T>): T | undefined {
if (isFunction(initVal)) {
return initVal(preState);