diff --git a/framework/sdk-parent/frontend/src/utils/custom_field.js b/framework/sdk-parent/frontend/src/utils/custom_field.js index d84b396484..be408edaf9 100644 --- a/framework/sdk-parent/frontend/src/utils/custom_field.js +++ b/framework/sdk-parent/frontend/src/utils/custom_field.js @@ -197,8 +197,8 @@ export function sortCustomFields(customFields) { let total = 0; //定义total用于控制循环结束 for (let i = 0; total < customFields.length; total++) { if ( - typeof customFields[i].defaultValue === "string" || - customFields[i].defaultValue instanceof String + (typeof customFields[i].defaultValue === "string" || + customFields[i].defaultValue instanceof String) && customFields[i].defaultValue !== '{}' && customFields[i].defaultValue !== '[]' ) { try { customFields[i].defaultValue = JSON.parse(customFields[i].defaultValue);