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

@ -130,8 +130,6 @@ const initFormData = () => {
const newSchemaDataForm: Record<string, number | boolean | string | object> = {}; const newSchemaDataForm: Record<string, number | boolean | string | object> = {};
console.log(currentTool.value.inputSchema.properties);
Object.entries(currentTool.value.inputSchema.properties).forEach(([name, property]) => { Object.entries(currentTool.value.inputSchema.properties).forEach(([name, property]) => {
newSchemaDataForm[name] = getDefaultValue(property); newSchemaDataForm[name] = getDefaultValue(property);
const originType = normaliseJavascriptType(typeof tabStorage.formData[name]); const originType = normaliseJavascriptType(typeof tabStorage.formData[name]);

View File

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