模板语法报错问题修复 [amis-saas-6565][卡片随机]

Change-Id: I94265732a65830d5033b072a947417729aab6b64
This commit is contained in:
jiatianqi 2022-09-08 10:42:55 +08:00
parent 27d7ee6c38
commit da2af53f1d
3 changed files with 3 additions and 3 deletions

View File

@ -404,7 +404,7 @@ export default class APIControl extends React.Component<
size: 'sm',
mode: 'horizontal',
description:
'发送体格式为:<%= data.dataType === "json" ? "application/json" : data.dataType === "form-data" ? "multipart/form-data" : data.dataType === "form" ? "application/x-www-form-urlencoded" : "" %>,当发送内容中存在文件时会自动使用 form-data 格式。',
'发送体格式为:<%= data.dataType === "json" ? "application/json" : (data.dataType === "form-data" ? "multipart/form-data" : (data.dataType === "form" ? "application/x-www-form-urlencoded" : "")) %>,当发送内容中存在文件时会自动使用 form-data 格式。',
options: [
{
label: 'JSON',

View File

@ -406,7 +406,7 @@ export default class APIControl extends React.Component<
size: 'sm',
mode: 'horizontal',
description:
'发送体格式为:<%= data.dataType === "json" ? "application/json" : data.dataType === "form-data" ? "multipart/form-data" : data.dataType === "form" ? "application/x-www-form-urlencoded" : "" %>,当发送内容中存在文件时会自动使用 form-data 格式。',
'发送体格式为:<%= data.dataType === "json" ? "application/json" : (data.dataType === "form-data" ? "multipart/form-data" : (data.dataType === "form" ? "application/x-www-form-urlencoded" : "")) %>,当发送内容中存在文件时会自动使用 form-data 格式。',
options: [
{
label: 'JSON',

View File

@ -224,7 +224,7 @@ setSchemaTpl('api', (patch: any = {}) => {
type: 'button-group-select',
name: 'dataType',
description:
'发送体格式为:<%= data.dataType === "json" ? "application/json" : data.dataType === "form-data" ? "multipart/form-data" : data.dataType === "form" ? "application/x-www-form-urlencoded" : "" %>,当发送内容中存在文件时会自动使用 form-data 格式。',
'发送体格式为:<%= data.dataType === "json" ? "application/json" : (data.dataType === "form-data" ? "multipart/form-data" : (data.dataType === "form" ? "application/x-www-form-urlencoded" : "")) %>,当发送内容中存在文件时会自动使用 form-data 格式。',
size: 'sm',
className: 'block',
mode: 'inline',