Commit 424c7e56f0b73aa178a2ea86092ec6ba064fcb3d
1 parent
6fe9ebf8
perf(api/external/customRequest): 修改select联动下拉框选择了属性(单个)报错问题
Showing
1 changed file
with
9 additions
and
1 deletions
... | ... | @@ -94,7 +94,15 @@ const extraValue = (object: Recordable) => { |
94 | 94 | |
95 | 95 | const handleParams = (Params: Recordable) => { |
96 | 96 | if (Params.keys && Params?.keys?.length) { |
97 | - Params.keys = (Params.keys || [] as any).join(',') | |
97 | + /** ft 修改select联动下拉框选择了属性(单个)报错问题 | |
98 | + * 源代码 Params.keys = (Params.keys || [] as any).join(',') | |
99 | + */ | |
100 | + if(!Array.isArray(Params.keys)){ | |
101 | + Params.keys = ([Params.keys] || [] as any).join(',') | |
102 | + }else{ | |
103 | + Params.keys = (Params.keys || [] as any).join(',') | |
104 | + } | |
105 | + //ft | |
98 | 106 | } |
99 | 107 | |
100 | 108 | const timePeriod = Params[SelectTimeAggregationFieldEnum.TIME_PERIOD] | ... | ... |