Commit 2891477eadc63874ed5dc5409e398ee9832dbfa9
Merge branch 'dev-fix-ww' into 'main_dev'
fix(public request): 修复公共接口查询设备属性无法多选 See merge request yunteng/thingskit-view!51
Showing
2 changed files
with
6 additions
and
1 deletions
... | ... | @@ -104,7 +104,11 @@ export const customRequest = async (request: RequestConfigType) => { |
104 | 104 | } |
105 | 105 | |
106 | 106 | const body = transformBodyValue(Body, requestParamsBodyType) |
107 | - | |
107 | + | |
108 | + if (Params.keys && Params?.keys?.length) { | |
109 | + Params.keys = (Params.keys || [] as any).join(',') | |
110 | + } | |
111 | + | |
108 | 112 | return customHttp.request<any>({ |
109 | 113 | url: requestUrl, |
110 | 114 | baseURL: getOriginUrl(requestOriginUrl!), | ... | ... |
... | ... | @@ -197,6 +197,7 @@ export const useDynamicPublicForm = (paramsItemList: Ref<ParamsItemType[]>) => { |
197 | 197 | options: unref(optionsSet[BuiltInVariable.KEYS]), |
198 | 198 | labelField: 'name', |
199 | 199 | valueField: 'identifier', |
200 | + multiple: true, | |
200 | 201 | onUpdateValue(value) { |
201 | 202 | params[BuiltInVariable.KEYS] = value |
202 | 203 | } | ... | ... |