chore: replace all cn comments of fe to en version by volc api (#320)
This commit is contained in:
@@ -36,9 +36,9 @@ import { Toast, Space, Typography, Button } from '@coze-arch/coze-design';
|
||||
const { Text } = Typography;
|
||||
|
||||
/**
|
||||
* Bot 编辑中流程选择弹窗, 自带 Bot 相关逻辑
|
||||
* Bot editing process selection pop-up window, with its own Bot related logic
|
||||
*
|
||||
* 如果仅需要流程选择弹窗, 请使用 `apps/bot/src/routes/space/[space_id]/workflow/components/workflow-modal`
|
||||
* If you only need the process selection pop-up, use'apps/bot/src/routes/space/[space_id]/workflow/components/workflow-modal'
|
||||
*/
|
||||
export function BotWorkflowModal({
|
||||
flowMode = WorkflowMode.Workflow,
|
||||
@@ -128,7 +128,7 @@ export function BotWorkflowModal({
|
||||
bindBizType={bindBizType}
|
||||
onWorkFlowListChange={$newList => {
|
||||
updateSkillWorkflows($newList);
|
||||
// 配置项有调整时自动展开能力模块
|
||||
// Automatically expand the capability module when the configuration item is adjusted
|
||||
if ($newList.length > 0) {
|
||||
emitEvent(
|
||||
flowMode === WorkflowMode.Imageflow
|
||||
|
||||
@@ -98,7 +98,7 @@ export const useBotWorkFlowListModal = (
|
||||
);
|
||||
|
||||
const modalState = useMemo(() => {
|
||||
// 在默认打开的状态下获取初始值
|
||||
// Get the initial value in the default open state
|
||||
if (!jumpResponse || !defaultVisible) {
|
||||
return;
|
||||
}
|
||||
@@ -140,11 +140,11 @@ export const useBotWorkFlowListModal = (
|
||||
|
||||
function safeParse<T>(jsonString: string): T | undefined {
|
||||
try {
|
||||
// 尝试解析 JSON 字符串
|
||||
// Attempt to parse JSON strings
|
||||
return JSON.parse(jsonString);
|
||||
// eslint-disable-next-line @coze-arch/use-error-in-catch
|
||||
} catch (error) {
|
||||
// 如果解析时出现错误,返回 null
|
||||
// If there is an error during parsing, return null.
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user