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

@@ -89,7 +89,7 @@ export const Setting: React.FC<{ modelId: string }> = ({ modelId }) => {
dataSetInfo={knowledge.dataSetInfo}
onDataSetInfoChange={async newVal => {
const { auto } = newVal;
// 修改调用模式时做前置检查
// Pre-check when modifying the invocation mode
if (auto !== knowledge.dataSetInfo.auto) {
try {
setLocked(true);
@@ -218,8 +218,8 @@ export const DataSetAreaItem: FC<IDataSetAreaProps> = ({
});
useEffect(() => {
// 排除首次初始化和删除更新,原因:
// 因为删除会快速操作useEffect 追踪到数据可能是最终结果,无法保证每次删除都能监听到
// Exclude first initialization and deletion of updates for:
// Because deletion is quick, useEffect traces that the data may be the final result, and there is no guarantee that every deletion will be monitored
if (initRef.current && removedIds.length === 0) {
updateSkillKnowledgeDatasetList(
dataSetList.map(d => ({
@@ -409,7 +409,7 @@ export const useDataSetArea = () => {
const validDatasetList = (resp?.dataset_list ?? []).filter(item =>
knowledge.dataSetList.some(i => i.dataset_id === item.dataset_id),
);
// 方便数据复用
// Easy data reuse
useDraftBotDataSetStore.getState().batchUpdate(validDatasetList);
setDataSetList(validDatasetList);
}