chore: hide json entrance

This commit is contained in:
Joel 2025-08-25 10:26:11 +08:00
parent e38ba8403d
commit 62955f4d11

View File

@ -54,7 +54,7 @@ const ConfigModal: FC<IConfigModalProps> = ({
const modalRef = useRef<HTMLDivElement>(null)
const appDetail = useAppStore(state => state.appDetail)
const isBasicApp = appDetail?.mode !== 'advanced-chat' && appDetail?.mode !== 'workflow'
const isSupportJSON = false
const jsonSchemaStr = useMemo(() => {
const isJsonObject = type === InputVarType.jsonObject
if (!isJsonObject || !tempPayload.json_schema)
@ -142,7 +142,7 @@ const ConfigModal: FC<IConfigModalProps> = ({
value: InputVarType.multiFiles,
},
] : []),
...(!isBasicApp ? [{
...((!isBasicApp && isSupportJSON) ? [{
name: t('appDebug.variableConfig.json'),
value: InputVarType.jsonObject,
}] : []),