diff --git a/src/commands/form/create.ts b/src/commands/form/create.ts index 1e94e3b..18b1997 100644 --- a/src/commands/form/create.ts +++ b/src/commands/form/create.ts @@ -571,17 +571,10 @@ export function buildFormCreateCommand(): Command { : type === 4 // type=4 视图不能带物理表 (后端会 Database exception), 强制空数组 ? [] - : [ - { - table: stripAppPrefix(opts.enCode), - typeId: '1', - comment: '主表', - fields: [ - { dataType: 'varchar', field: 'f_id', fieldName: '主键', primaryKey: 1 }, - { dataType: 'varchar', field: 'f_tenant_id', fieldName: '租户id', primaryKey: 1 }, - ], - }, - ] + : [] // 2026-06-26 v0.11d 修复: 兜底不再生成 [{f_id,f_tenant_id}], 发 [] + // web 浏览器场景: tables=[] 跳过 create() getPrimaryDbField 校验 + // publish() (Actions/Release) line 628 自动从 formData.fields 推 schema 建表 + // 之前兜底 2-PK schema 会触发 create() line 527 循环, 表不存在抛 "请在数据库中添加对应的数据表" // 2026-06-26 v0.11d 反思: columnList 不由 dacli 自动生成 // web ColumnDesign/src/components/Main.vue:226-771 真实流程: