diff --git a/src/commands/dict/typecreate.ts b/src/commands/dict/typecreate.ts index 46c1375..872332b 100644 --- a/src/commands/dict/typecreate.ts +++ b/src/commands/dict/typecreate.ts @@ -83,6 +83,8 @@ export function buildDictTypeCreateCommand(): Command { fullName: item.fullName, parentId: item.parentId || '0', sortCode: item.sortCode ?? 0, + // v0.11 修复: web Form.vue:50-54 enabledMark Switch 默认 1 + enabledMark: (item as any).enabledMark ?? 1, } const r = await c.postJson<{ id: string }>('/system/DictionaryData', body) if (r.code === 200) { ok++; log.ok(` ✓ ${item.enCode} → ${item.fullName}`) }