refactor: 将 NodeDebugResponseProps 接口更改为类型定义,优化代码结构
This commit is contained in:
@@ -13,10 +13,10 @@ import {
|
|||||||
RenderUserFormInteractive
|
RenderUserFormInteractive
|
||||||
} from '@/components/core/chat/components/InteractiveComponents';
|
} from '@/components/core/chat/components/InteractiveComponents';
|
||||||
|
|
||||||
interface NodeDebugResponseProps {
|
type NodeDebugResponseProps = {
|
||||||
nodeId: string;
|
nodeId: string;
|
||||||
debugResult: FlowNodeItemType['debugResult'];
|
debugResult: FlowNodeItemType['debugResult'];
|
||||||
}
|
};
|
||||||
|
|
||||||
const NodeDebugResponse = ({ nodeId, debugResult }: NodeDebugResponseProps) => {
|
const NodeDebugResponse = ({ nodeId, debugResult }: NodeDebugResponseProps) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|||||||
Reference in New Issue
Block a user