refactor(workflow): 替换 Switch 为 ApiSwitch 并优化状态常量

将流程定义列表中的 Switch 组件替换为 ApiSwitch 以统一异步操作处理,并添加 `as const` 修饰常量以提高类型安全性。同时修复激活状态逻辑,确保与系统其他定义一致。
This commit is contained in:
dap
2026-01-27 20:42:15 +08:00
parent 0636c5f4a6
commit 188ef3a66e
2 changed files with 22 additions and 7 deletions

View File

@@ -63,9 +63,9 @@ export const DEFAULT_CLIENT_ID = 1;
export const EnableStatus = {
Enable: '0',
Disable: '1',
};
} as const;
export const YesNo = {
Yes: 'Y',
No: 'N',
};
} as const;