This commit is contained in:
asp_ly 2025-01-20 09:56:35 +08:00
parent f64b9a8d72
commit 6235f0e09b

View File

@ -131,7 +131,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
const schema: ISchema = { const schema: ISchema = {
type: 'object', type: 'object',
properties: { properties: {
layout: { jenkinsConfig: {
type: 'void', type: 'void',
'x-component': 'FormGrid', 'x-component': 'FormGrid',
'x-component-props': { 'x-component-props': {
@ -226,7 +226,7 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
}, },
} }
}, },
environmentVariables: { envConfig: {
type: 'void', type: 'void',
'x-component': 'FormGrid', 'x-component': 'FormGrid',
'x-component-props': { 'x-component-props': {
@ -379,6 +379,8 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
try { try {
const values = await form.submit() const values = await form.submit()
console.log('表单提交的值:', values) console.log('表单提交的值:', values)
console.log('Schema:', schema)
console.log('FORMILY', JSON.stringify(schema, null, 2))
onSuccess?.() onSuccess?.()
form.reset() form.reset()
} catch (e) { } catch (e) {