mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
parent
5bac31f530
commit
7aa26ea587
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Reference in New Issue