fix bug of object save

This commit is contained in:
锦恢 2025-06-01 15:32:56 +08:00
parent 34bc18085a
commit e4e626cd4e
2 changed files with 2 additions and 4 deletions

View File

@ -128,9 +128,7 @@ const initFormData = () => {
if (!currentTool.value?.inputSchema?.properties) return;
const newSchemaDataForm: Record<string, number | boolean | string | object> = {};
console.log(currentTool.value.inputSchema.properties);
const newSchemaDataForm: Record<string, number | boolean | string | object> = {};
Object.entries(currentTool.value.inputSchema.properties).forEach(([name, property]) => {
newSchemaDataForm[name] = getDefaultValue(property);

View File

@ -27,7 +27,7 @@ export function normaliseJavascriptType(type: string) {
case 'string':
return 'string';
default:
return 'string';
return type;
}
}