mirror of
https://github.com/labring/FastGPT.git
synced 2026-01-16 01:02:28 +08:00
@@ -86,6 +86,8 @@ const StructureRender = ({ code }: { code: string }) => {
|
||||
<>
|
||||
{jsonObjList.map((jsonObj, index) => {
|
||||
const { type, content } = jsonObj;
|
||||
if (type === 'DIVIDER') return <Divider key={index}></Divider>;
|
||||
if (!content) return '';
|
||||
if (type === 'TABLE') return <Table data={content.data} key={index}></Table>;
|
||||
if (type === 'INDICATOR')
|
||||
return <Indicator dataList={content.dataList} key={index}></Indicator>;
|
||||
@@ -93,7 +95,6 @@ const StructureRender = ({ code }: { code: string }) => {
|
||||
if (type === 'ERROR_TIPS') return <Tips content={content} key={index} type="error"></Tips>;
|
||||
if (type === 'WARNING_TIPS')
|
||||
return <Tips content={content} key={index} type="warning"></Tips>;
|
||||
if (type === 'DIVIDER') return <Divider key={index}></Divider>;
|
||||
if (type === 'TEXTBLOCK') return <TextBlock content={content} key={index}></TextBlock>;
|
||||
if (type === 'CHART')
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user