fix: 修复管理端类型检查错误
- 为分页数据列表补充明确行类型 - 修正插件数组默认值解析的类型转换 - 删除 tinyflow 未使用辅助函数
This commit is contained in:
@@ -162,10 +162,11 @@ const parseWorkflowNodeValue = (node: TreeTableNode): any => {
|
||||
};
|
||||
|
||||
const parseArrayValue = (node: TreeTableNode): any[] => {
|
||||
if (Array.isArray(node.defaultValue as any)) {
|
||||
return node.defaultValue as any[];
|
||||
const defaultValue = node.defaultValue as unknown;
|
||||
if (Array.isArray(defaultValue)) {
|
||||
return defaultValue;
|
||||
}
|
||||
const raw = String(node.defaultValue || '').trim();
|
||||
const raw = String(defaultValue || '').trim();
|
||||
if (!raw) {
|
||||
return [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user