fix: 参数配置新增根据规则类型转值
This commit is contained in:
@@ -432,6 +432,10 @@ function arrayAdd() {
|
|||||||
if (Array.isArray(v.array)) {
|
if (Array.isArray(v.array)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// 根据规则类型转值
|
||||||
|
if(['enum', 'int'].includes(v.type)){
|
||||||
|
v.value = Number(v.value)
|
||||||
|
}
|
||||||
row[v.name] = Object.assign({}, v);
|
row[v.name] = Object.assign({}, v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user