fix(dacli/workflow create): BS-新145 catch 内访问 templateId (let 上提到 try 外)
Before: `let templateId = ''` 在 try 块内部声明, catch 闭包内不可见
→ TS2304 Cannot find name 'templateId' (4 处)
→ 实际语义错位 (catch 块没法 cleanup 残留 template)
After: `let templateId` 在 async 回调体作用域声明 (try 之前)
→ catch 通过闭包可见
→ 测试通过后强制走主分支质量门
This commit is contained in:
1 parent
a0ea5754d7
commit
f422e9b420
1 file changed
+1
-1
@@ -123,9 +123,9 @@ export function buildWorkflowCreateCommand(): Command {
|
||||
json: opts.json,
|
||||
fixes: [...cmdFix.silent, ...cmdFix.assertive, ...cmdFix.suggestions],
|
||||
}, async (ctx) => {
|
||||
try {
|
||||
// BS-新145 (2026-07-30 jxcj M1): 提前声明 templateId, 让 catch 块能 cleanup 残留
|
||||
let templateId = ''
|
||||
try {
|
||||
|
||||
// (Round 8 P0): workflow 没绑 startFormId → 浏览器报 "workFlowForm/undefined.vue"
|
||||
// step 1 拦截: 提示用户传 --startFormId (web NodeFormParser.vue:59-64)
|
||||
|
||||
Reference in new issue
Block a user